linuxwithoutins 发表于 2003-6-26 09:54:55

关于安装glib-2.0

安装完后,老是找不到路径为什么啊?谢谢,是不是在编一前加上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

linuxwithoutins 发表于 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,我是哪一部出错了呢?谢谢指教

mozilla 发表于 2003-6-26 13:07:32

看看/usr/local/lib/pkgconfig下面有没有glib-2.0.pc这个文件,如果有
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
./configure

xdwjack 发表于 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.

linuxwithoutins 发表于 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.
请指点
页: [1]
查看完整版本: 关于安装glib-2.0