'pkg-config --modversion glib-2.0' returned 2.34.1, but GLIB (2.32.3)

来源:互联网 发布:网络的发展与未来 编辑:程序博客网 时间:2024/05/12 16:27

glib:这步太关键了,浪费的时间机会全在这里,开始安装到pango及后面gtk时总报 checking for GLIB - version >;= 2.0.0... *** 'pkg-config --modversion glib-2.0' returned 2.12.4, 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.0 is required to build Gaim; please make sure you have the GLib *** development headers installed. The latest version of GLib is *** always available at http://www.gtk.org/ . 真是被他气死,版本换到最高级还是不球行,网络上的解决方案几乎全没用,大量失败后发现原来是系统自带的glib2.2.1捣的鬼,要删除,怎么删呢,不会啊,于是接着找,谢谢deeperpurple提供了思路,方法如下: cd glib-2.14.2 make uninstall 反安装 #rm /usr/bin/glib*  //删除系统自带 #rm /usr/local/lib/glib-2.0 //同上 重新编译安装 glib-2.14.2 还在/usr/local目录下, 然后配置环境变量 #export LD_LIBRARY_PATH=/usr/local/lib #export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig make install