error while loading shared libraries 的解决方法

 error while loading shared libraries: libpango_image.so: cannot open shared object file: No such file or directory

#cat /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf
#sudo sh -c "echo '/usr/local/lib' >> /etc/ld.so.conf"
#cat /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf

/usr/local/lib
#sudo sh -c ldconfig

这个情况是共享库文件已经默认安装到了/usr/local/lib目录下面,在执行ldconfig命令前, 还要把新共享库目录加入到共享库配置文件/etc/ld.so.conf中。

你可能感兴趣的:(linux)