Hak*_*rie 5 gtk environment-variables glib
我正在安装 GTK+,但它需要各种先决条件。这些是
现在我将我的 glib-2.0 升级到 2.38.2,并且我已经尝试升级 atk、pango 和 gdk-pixbuf
checking for GLIB - version >= 2.31.2...
'pkg-config --modversion glib-2.0' returned 2.38.2, but GLIB (2.32.4)
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
configure: error:
GLIB 2.31.2 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.
Run Code Online (Sandbox Code Playgroud)
在过去的几个小时里,我一直在兜兜转转,试图让这个工作,如果有人能提供帮助,我将不胜感激。提前致谢
小智 3
我和你有同样的问题。
我设置PKG_CONFIG_PATH并LD_LIBRARY_PATH作为
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
LD_LIBRARY_PATH=/usr/local/lib
Run Code Online (Sandbox Code Playgroud)
但这没有用。然后我发现有人解决了这个问题
echo $LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
Run Code Online (Sandbox Code Playgroud)
它确实有效!
| 归档时间: |
|
| 查看次数: |
18795 次 |
| 最近记录: |