我根据需要安装了 GTK,brew install gtk+
以便在我的 Mac 上从源代码编译 xchat。当我尝试安装它时,它说Cannot find GTK! Not building GTK FrontEnd.
我怀疑我应该在安装 gtk+ 后更新环境变量,但我不知道如何。
iMac:xchat-2.8.8 Domenico$ brew info gtk+
gtk+: stable 2.24.20
http://gtk.org/
/usr/local/Cellar/gtk+/2.24.20 (1184 files, 52M) * // here is the path!!!
Built from source
From: https://github.com/mxcl/homebrew/commits/master/Library/Formula/gtk+.rb
==> Dependencies
Build: pkg-config, xz
Required: glib, jpeg, libtiff, gdk-pixbuf, pango, atk, cairo
Optional: jasper
==> Options
--with-jasper
Build with jasper support
路径在上面的代码中列出。我尝试添加与它相关的所有类型的东西(例如/usr/local/Cellar/gtk+/2.24.20/bin
或/usr/local/Cellar
),$LD_LIBRARY_PATH
但它没有工作。有任何想法吗?