库文件是不缺的,应该是链接路径的问题
查看 http://icooke.blog.51cto.com/4123148/757946, 说是要编辑 /etc/ld.so.conf.d/gtk-2.0.conf 文件,可这个文件不存在 ,那就新建这个文件,添加如下内容:
/etc/ld.so.conf.d/* 目录下的文件和 /etc/ld.so.conf 记录了动态链接库的路径,系统默认搜索/lib和
/usr/lib,在其他路径下的库文件就需在这些文件中指定。或者,还有个方法,就是设置LD_LIBRARY_PATH环境变量,添加其他路径,多个
中间用":"分隔开。
ldconfig 是一个用来将 /etc/ld.so.conf.d/*h 和 /etc/ld.so.conf 中列出的库缓存到
/etc/ld.so.cache 文件中以供使用,因此在装完一些库或更新 /etc/ld.so.conf 文件时,需运行
/sbin/ldconfig 命令一下。
(http://blog.163.com/fhtx_2008/blog/static/7285544201012124614983/)
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30626973/viewspace-1965147/ ,如需转载,请注明出处,否则将追究法律责任。