Morxio 发表于 2005-3-14 21:18:18

谁知道怎么升级glib啊?

我的glib原来是1.2.10 的,我升级成了2.2.1

但是为了更新我的gimp我要把glib-2.2.1升级成2.6.3的。

我已经把pkg-config升级成pkg-config-0.15.0

我按照INSTALL装了glib-2.6.3,运行#pkg-config --modversion glib-2.0
显示2.6.3
运行#pkg-config --modversion glib
显示1.2.0

我接着升级atk为1.9.0版本,但是运行#./configure时,显示
checking for GLIB - version >= 2.5.7...
*** 'pkg-config --modversion glib-2.0' returned 2.6.3, but GLIB (2.2.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.5.7 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.
# pkg-config --modversion glib-2.2.1
Package glib-2.2.1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.2.1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.2.1' found

我已经快疯了,从中午11点搞到现在都11个小时了.

6692975 发表于 2005-3-15 12:05:37

似乎你的系统上还有glib-2.2.1,没卸载它?

你将2.6.3的glib安装到哪了呢?

如果装在/usr/local/lib下

在/etc/ld.so.conf里加入/usr/local/lib 了吗?

可以看看cofigure脚本,看看出错那里是怎么判断的。

Morxio 发表于 2005-3-15 13:02:26

不知道怎么卸载glib-2.2.1,,我的/home/library/Prgram里已经把glib-2.2.1的安装文件夹删掉了,但是用locate glib-2.2.1查的时候,还是发现glib-2.2.1在/home/library/Prgram里面。


没有加入安装路径。

cobranail 发表于 2005-3-15 23:44:17

如果从rawhide上下载rh提供的代码,问题会少一点

Morxio 发表于 2005-3-16 22:47:07

看来只有重装系统了啊

悲怆......
页: [1]
查看完整版本: 谁知道怎么升级glib啊?