error while loading shared libraries的解決方法
2012-10-25 16:19
405 查看
error while loading shared libraries的解決方法
gearman: error while loading shared libraries: libgearman.so.8: 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一行,可以解決此问题
更改之后如下:
include /etc/ld.so.conf.d/*.conf
/usr/local/lib
执行命令/sbin/ldconfig 才会使更新生效;
可以用/sbin/ldconfig -v |grep gearman* 查看是否添加
gearman: error while loading shared libraries: libgearman.so.8: 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一行,可以解決此问题
更改之后如下:
include /etc/ld.so.conf.d/*.conf
/usr/local/lib
执行命令/sbin/ldconfig 才会使更新生效;
可以用/sbin/ldconfig -v |grep gearman* 查看是否添加
相关文章推荐
- 转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的解決方法
- 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的解決方法
- 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的解決方法
- error while loading shared libraries的解決方法
- error while loading shared libraries的解決方法