/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 ?