error while loading shared libraries:lib***.so.*: cannot open shared object file
·
问题描述:
运行编译后的可执行程序时报错 error while loading shared libraries: lib****.so.*: cannot open shared object file: No such file or directory.
原因分析:
从错误信息提示中,可以知道是在指定的路径找不到或者缺乏这个动态链接库。
解决方案:
//如果系统上有你需要的库文件如下:

//可以搜索到就在动态链接库的配置里,加入了库文件的位置
echo "/usr/local/lib" >> /etc/ld.so.conf
//更新/etc/ld.so.cache文件
ldconfig
更多推荐
所有评论(0)