./tests: error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory
这就表示系统不知道xxx.so放在哪个目录下,这时候就要在/etc/ld.so.conf中加入xxx.so所在的目录。
一般而言,有很多so文件会在/usr/local/lib这个目录下,所以在/etc/ld.so.conf中加入/usr/local/lib这一行,可以解决此问题。
将 /etc/ld.so.conf存档后,还要执行 " /sbin/ldconfig –v " 来更新一下才会生效。
本文详细介绍了如何解决Linux系统加载共享库时遇到的问题,即找不到特定.so文件的情况。通过在/etc/ld.so.conf中添加.so文件所在目录,并执行/sbin/ldconfig–v更新配置,可以有效解决此问题。
3642

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



