error while loading shared libraries: libmpc.so.3: cannot open shared object file: No such file or directory

 

error while loading shared libraries: libmpc.so.3: cannot open shared object file: No such file or directory

 

[root@localhost mpc-1.0.3]# locate libmpc.so.3
/home/aimin/software/mpc-1.0.3/src/.libs/libmpc.so.3
/home/aimin/software/mpc-1.0.3/src/.libs/libmpc.so.3.0.0
/home/aimin/temp/mpc-1.0.3/src/.libs/libmpc.so.3
/home/aimin/temp/mpc-1.0.3/src/.libs/libmpc.so.3.0.0
/usr/local/lib/libmpc.so.3
/usr/local/lib/libmpc.so.3.0.0
[root@localhost mpc-1.0.3]# ll /usr/local/lib/libmpc.so.3
lrwxrwxrwx. 1 root root 15 Nov  2 20:06 /usr/local/lib/libmpc.so.3 -> libmpc.so.3.0.0
 

 

添加一下库的路径就可以了

export LD_LIBRARY_PATH="/usr/local/lib"

posted @ 2020-11-02 20:14  emanlee  阅读(3946)  评论(0编辑  收藏  举报