【求助】安装GTK+2.0的过程中的问题

其它类软件,非上述版软件
回复
junejunejune
帖子: 1
注册时间: 2010-02-20 17:47
送出感谢: 0
接收感谢: 0

【求助】安装GTK+2.0的过程中的问题

#1

帖子 junejunejune » 2010-12-07 22:17

我是新手 很多基本的东西还不是很清楚 也是第一次发贴 如有什么不对的地方请指正
安装GTK+2.20 必须要先安装好Glib,Pango,ATK,cairo等东西,先开始装glib的时候默认装在了/user/local下面

安装好后是安装ATK

./configure 后最后出现
checking for GLIB - version >= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.22.4, but GLIB (2.24.1)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** GLIB 2.0.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.
上网查阅了得知要把glib装在/usr下或者设置PKG_CONFIG_PATH.两种方法
于是我make uninstall把glib卸载了
再./configure --prefix=/usr安装glib
装好后继续装ATK 结果还是上述问题
我打开/user/local/lib 发现还有glib-2.0文件夹 不过是空的 删不掉,/user/local/lib 下的pkgconfig里也是空的
再打开/user/lib 发现glib-2.0文件夹 而且有10k多 /user/lib 下的pkgconfig里面能找到glib-2.0.pc
于是我很郁闷。。。
为了保险起见,我又设置了 PKG_CONFIG_PATH指向/user/local/lib/pkgconfig 还运行了/etc/ld.so.conf
重启后安装ATK 。/configure发现还是上述错误
运行echo $PKG_CONFIG_PATH发现变空了。。。
回复

回到 “其它类软件”