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系统在运行程序时遇到`error while loading shared libraries: libpango_image.so: cannot open shared object file: No such file or directory`错误时的解决方法。内容包括检查`/etc/ld.so.conf`文件,将新的共享库目录`/usr/local/lib`添加到配置文件中,并执行`ldconfig`命令来更新链接器缓存,确保系统能找到所需的库文件。
1082

被折叠的 条评论
为什么被折叠?



