解决: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.原因分析:从错误信息提示中,可以知道是在指定的路径找不到或者缺乏这个动态链接库。解决方案://在动态链接库的配置里,加入了库文件的位置ech
文章共121字 · 阅读需要大约1分钟
一键AI生成摘要,助你高效阅读
问答
·
问题描述:
运行编译后的可执行程序时报错 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
更多推荐
已为社区贡献1条内容
所有评论(0)