error while loading shared libraries的解決方法

转:http://blog.csdn.net/dumeifang/archive/2008/09/22/2963223.aspxphp

php好不容易编译经过,又来一错误error while loading shared libraries..net

网上解决办法:blog

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所在的目录。get

通常而言,有不少的so会存放在/usr/local/lib这个目录底下,去这个目录底下找,果真发现本身所须要的.so文件。编译

因此,在/etc/ld.so.conf中加入/usr/local/lib这一行,保存以后,再运行:/sbin/ldconfig –v更新一下配置便可。配置

相关文章
相关标签/搜索