我用从www.gnome.org上下载的glib-2.4.8.tar.bz2升级glib。从configure到make install很顺利。可是随后我升级gtk+-2.4.14时,configure里却出现
============================
...................
...................
...................
checking for pkg-config... /usr/bin/pkg-config
checking for glib-2.0 >= 2.4.0 atk >= 1.0.1 pango d 'glib-2.0 >= 2.4.0' but version of GLib is 2.2.1
configure: error: Library requirements (glib-2.0 >= 2.4. pango >= 1.4.0) not met; consider adjusting the PKG_CON variable if your libraries are in a nonstandard prefix nd them.
[root@localhost gtk+-2.4.14]#
小弟实在孤陋寡闻,请各位大侠帮忙解决一下!!
我把老的glib强制删掉了,然后编译了新的glib.接着在新的gtk目录下./configure --prefix=/usr
结果又出现了
checking for glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0... Requested 'glib-2.0 >= 2.4.0' but version of GLib is 2.2.1
configure: error: Library requirements (glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
[root@localhost gtk+-2.4.14]#
请问什么原因呢?