QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2973|回复: 5

关于安装glib-2.0

[复制链接]
发表于 2003-6-26 09:54:55 | 显示全部楼层 |阅读模式
安装完后,老是找不到路径为什么啊?谢谢,是不是在编一前加上export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

kg-config --libs glib-2.0
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
 楼主| 发表于 2003-6-26 11:38:23 | 显示全部楼层
当我编译atk时,出现如下提示checking for GLIB - version >= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.0.0, 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.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/.

可是我/usr/local/lib下可以找到glib-2.0,我是哪一部出错了呢?谢谢指教
回复

使用道具 举报

发表于 2003-6-26 13:07:32 | 显示全部楼层
看看/usr/local/lib/pkgconfig下面有没有glib-2.0.pc这个文件,如果有
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
./configure
回复

使用道具 举报

发表于 2003-6-26 16:33:02 | 显示全部楼层
you can find the glib-2.0.pc by the way of
1)whereis glib-2.0.pc
2)which glib-2.0.pc
3)locate glib-2.0.pc
choose one is ok.
回复

使用道具 举报

 楼主| 发表于 2003-6-27 13:09:53 | 显示全部楼层
问题解决了。费劲,哈哈。谢谢大家啊!
回复

使用道具 举报

发表于 2003-7-3 19:21:07 | 显示全部楼层
*** 'pkg-config --modversion glib-2.0' returned 2.0.0, but GLIB (2.2.1)

我的显示的是

*** 'pkg-config --modversion glib-2.0' returned 2.2.1, but GLIB (2.0.6)

按照上面说的

export PAxxxxxx

还是不行,/usr/local/lib/pkgconfig 下也找到了 glib-20.pc.
请指点
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-19 16:49 , Processed in 0.047122 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表