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

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

 

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值