31.3.2011 17:16, Mahmood Naderan kirjoitti:
/opt/gcc4.6build/./gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory It complains about libmpc.so.2 however I have this file since I installed MPC from source: root@pc:/opt/gcc4.6build# ls -l /usr/local/lib/libmpc.* -rw-r--r-- 1 root root 147256 2011-03-31 12:37 /usr/local/lib/libmpc.a -rwxr-xr-x 1 root root 946 2011-03-31 12:37 /usr/local/lib/libmpc.la lrwxrwxrwx 1 root root 15 2011-03-31 12:37 /usr/local/lib/libmpc.so -> libmpc.so.2.0.0 lrwxrwxrwx 1 root root 15 2011-03-31 12:37 /usr/local/lib/libmpc.so.2 -> libmpc.so.2.0.0 -rwxr-xr-x 1 root root 89558 2011-03-31 12:37 /usr/local/lib/libmpc.so.2.0.0 As you can see in the config.log, I configured the gcc to install in /usr. What should I do in order to tell gcc where is libmpc.so.2 ?
Aren't there any "linux-help" list for questions like this? Knowing how and where Linux searches shared libraries when some executable, here 'cc1', needs them, belongs to the basic know-how any Linux-newbie must learn sooner or later. And how one adds more directories to the search path... Hints: Please look at '/etc/ld.so.conf' and try 'man ld.so' !