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

Posted stephen-qin

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了error while loading shared libraries: lib*.so: cannot open shared object file: No such file or direc相关的知识,希望对你有一定的参考价值。

 

 动态库的搜索路径搜索的先后顺序是: 

  1.编译目标代码时指定的动态库搜索路径;

  2.环境变量LD_LIBRARY_PATH指定的动态库搜索路径; 比如export LD_LIBRARY_PATH=/usr/local/lib(这样就可以加进来了)

  3.配置文件/etc/ld.so.conf中指定的动态库搜索路径;

  4.默认的动态库搜索路径/lib    /usr/lib。

 

 参考文献:https://www.cnblogs.com/Recan/p/6012305.html

 

以上是关于error while loading shared libraries: lib*.so: cannot open shared object file: No such file or direc的主要内容,如果未能解决你的问题,请参考以下文章

error while loading shared libraries错误解决

error while loading shared libraries错误解决

error while loading shared libraries: libmcrypt.so.4

error while loading shared libraries: libaio.so.1

linux下报错:error while loading shared libraries

error while loading shared libraries的解決方法