错误解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file

分析缘由:ld提示找不到库文件,而库文件就在当前目录中。  连接器ld默认的目录是/lib和/usr/lib,若是放在其余路径也能够,须要让ld知道库文件在哪里。app 方法1:  编辑/etc/ld.so.conf文件,在新的一行中加入库文件所在目录;.net 运行ldconfig,以更新/etc/ld.so.cache文件;blog 方法2:  在/etc/ld.so.conf.d/目录下新建
相关文章
相关标签/搜索