缺少动态连接库.so--cannot open shared object file: No such file or directory

Posted CZM&

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了缺少动态连接库.so--cannot open shared object file: No such file or directory相关的知识,希望对你有一定的参考价值。

总结下来主要有3种方法:
1. 用ln将需要的so文件链接到/usr/lib或者/lib这两个默认的目录下边
ln -s /where/you/install/lib/*.so /usr/lib
sudo ldconfig

 

2.修改LD_LIBRARY_PATH

export LD_LIBRARY_PATH=/where/you/install/lib:$LD_LIBRARY_PATH
sudo ldconfig

 

3.修改/etc/ld.so.conf,然后刷新

 

vim /etc/ld.so.conf

add /where/you/install/lib

sudo ldconfig

 

以上是关于缺少动态连接库.so--cannot open shared object file: No such file or directory的主要内容,如果未能解决你的问题,请参考以下文章

缺少动态连接库.so--cannot open shared object file: No such file or directory

error while loading shared libraries: libXXXX.so: cannot open shared object file: No such file or di

error while loading shared libraries: lib*.so: cannot open shared object file: No such file or direc

error while loading shared libraries: libhcnetsdk.so: cannot open shared object问题解决

libuuid.so: cannot open shared object file: No such file or directory

ogg启动报错libnnz11.so: cannot open shared object file