Linux error while loading shared libraries的解決步骤
2013-12-06 17:09
661 查看
Linux error while loading shared libraries的解決方法
今天给在linux下运行程序时升级时,重启Apache 出现
error while loading shared libraries这种错误,之前Apache一直都运行正常,仔细研究了下终于找到的了解决方案,写下来备份下。
./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更新一下配置即可。
今天给在linux下运行程序时升级时,重启Apache 出现
error while loading shared libraries这种错误,之前Apache一直都运行正常,仔细研究了下终于找到的了解决方案,写下来备份下。
./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更新一下配置即可。
相关文章推荐
- Linux 下error while loading shared libraries的解決方法
- error while loading shared libraries的解決方法
- libexec/gcc/arm-linux-gnueabihf/4.7.3/cc1: error while loading shared libraries: libz.so.1: cannot o
- linux下设定动态库路径的命令->error while loading shared libraries: xxx.so.x"错误的原因和解决办法
- error while loading shared libraries的解決方法
- error while loading shared libraries的解決方法
- Linux下redis编程:error while loading shared libraries: libhiredis.so.0.11
- linux加载共享问题error while loading shared libraries: xxx.so.0:cannot open shared object file: No such fi
- error while loading shared libraries的解決方法
- error while loading shared libraries的解決方法
- error while loading shared libraries的解決方法
- error while loading shared libraries的解決方法
- arm-linux-gnueabihf-g++: error while loading shared libraries: libstdc++.so.6 no such file and ....
- arm-linux-gnueabihf-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared ob
- error while loading shared libraries的解決方法
- error while loading shared libraries的解決方法
- error while loading shared libraries的解決方法
- error while loading shared libraries的解決方法
- error while loading shared libraries的解決方法
- error while loading shared libraries的解決方法