Linux lacks dynamic link library .so - can not open shared object file: No such file or directory

When 1 Liunx installation error, the absence of a dynamic link library, in the form as follows:

/usr/local/libexec/gcc/x86_64-unknown-liunx-gnu/4.8.2/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory


It means the Linux system does not know libmpc.so.2 placed under which catalog.

2 In general, there are so many files in / usr / local / lib or / usr / lib directory, now change directory to find  libmpc.so.2 .

3 Add / usr / local / lib /etc/ld.so.conf this line, the /etc/ld.so.conf save;

[4 execute / sbin / ldconfig -v] about life in the update to take effect, and then perform other installed by command;

PS If you do not see libmpc.so.2 documents, stated that this is a link to a file, you need to create one, then enter libmpc.so.2.0.0 directory i386-linux-gnu create a link file;
root @ Nikola: / usr / lib # ln -s libmpc.so.2.0.0 libmpc.so.2
created, and then recompile zlib, OK

 

See also:

https://www.cnblogs.com/amboyna/archive/2008/02/06/1065322.html

https://www.cnblogs.com/smartvessel/archive/2011/01/21/1940868.html

Guess you like

Origin www.cnblogs.com/fanblogs/p/11141403.html