问题描述:
运行编译后的可执行程序时报错 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
本文介绍了当遇到“error while loading shared libraries: lib****.so.*: cannot open shared object file: No such file or directory”这一错误时的解决方法。通过在动态链接库配置中加入库文件位置,并更新/etc/ld.so.cache文件来解决问题。
6万+

被折叠的 条评论
为什么被折叠?



