linux加载共享问题error while loading shared libraries: xxx.so.0:cannot open shared object file: No such fi
2014-11-10 18:22
716 查看
在linux下运行程序时,发现了error while loading shared libraries这种错误,一时间不知道解决办法,在网上搜索,终于解决了:
./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这个目录底下,去这个目录底下找,果然发现自己所需要的.so文件。
所以,在/etc/ld.so.conf中加入/usr/local/lib这一行,保存之后,再运行:/sbin/ldconfig –v更新一下配置即可。
./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这个目录底下,去这个目录底下找,果然发现自己所需要的.so文件。
所以,在/etc/ld.so.conf中加入/usr/local/lib这一行,保存之后,再运行:/sbin/ldconfig –v更新一下配置即可。
相关文章推荐
- Ubuntu共享库问题[gtest]_error while loading shared libraries: libgtest.so.0: cannot open shared object file: No such file or director
- 共享库问题[gtest] _error while loading shared libraries: libgtest.so.0: cannot open shared object file: No such file or directory
- Linux运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such fil
- 解决Linux: error while loading shared libraries: ...: cannot open shared object file: No such file or directory 类似问题
- 运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
- error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
- error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory
- 运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
- 关于 error while loading shared libraries: libfaac.so.0: cannot open shared object file: No such fi
- 运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
- error while loading shared libraries: libevent-1.3e.so.1: cannot open shared object file: No such fi
- 解决 Linux error while loading shared libraries: cannot open shared object file: No such file or directory
- 关于 error while loading shared libraries: libXXX.so.1.2.3: cannot open shared object file: No such fi
- Linux下出现error while loading shared libraries,...cannot open shared object file: No such file..
- 运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
- 关于 error while loading shared libraries: libXXX.so.1.2.3: cannot open shared object file: No such fi
- error while loading shared libraries: libiw.so.29: cannot open shared object file: No such file
- error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file
- error while loading shared libraries: libevent-1.3.so.1:cannot open shared object file :No such file or directory解决方法
- 错误解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file