|
发表于 2004-5-10 21:31:50
|
显示全部楼层
[quote:a5eaa719fe="pinkme005"]我装了glib2.4到/usr/local/lib中去了,编译atk的时候,总是提示,pkgconfig返回了2.2.3的glib,但是也检测出了才装的2.4版本,只是说pkgconfig没有找到位置,要定义LD_LARBRAY_PATH和PKG_CONFIG_PATH的指向,怎么搞啊??
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.2.3, but GLIB (2.4.0)
*** 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/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.[/quote]
这是告诉你系统发现了2个glib的版本.不知道具体采用哪个
你应该在.configure 之前先设定pkgconfig的环境变量路径:
./configure 之前,先执行
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
(2.4.0版本的pkgconfig的默认路径) |
|