我正在尝试编译gtk+-3.2.0
,但我收到一条错误消息./configure
:
checking for GLIB - version >= 2.29.14...
*** 'pkg-config --modversion glib-2.0' returned 2.32.4, but GLIB (2.34.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.29.14 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/.
我真的有 GLIB 2.34.0(我也从源代码编译过),但我不知道如何 gtk 知道这个库。我已将 PKG_CONFIG_PATH 更改为指向新 glib 安装所在的路径,ldconfig
但没有区别。通过修改 /etc/ld.so.conf 我真的不知道该怎么做。