在 OSX 上安装编译所需的库/框架/包

在 OSX 上安装编译所需的库/框架/包

我正在尝试编译智能模拟OSX Lion,此刻我正站在舞台上./configure

这是我迄今为止所取得的成果的转储:

$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ... no
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for GTK... no
configure: error: Package requirements (gtk+-2.0) were not met:

Package 'cairo', required by 'pangocairo', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GTK_CFLAGS
and GTK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

但是,我已经安装了 Homebrew,它说我已经安装了上述内容:

$ brew install gtk+
Warning: gtk+-2.24.17 already installed

这是我的文件转储/etc/paths

/usr/local/Cellar/
/usr/local/bin
/usr/local/sbin
/usr/bin
/bin
/usr/sbin
/sbin
/Library/Frameworks/GTK+.framework/Resources/bin

哦,我还为编译器集合、构建工具和所有其他开发工具安装了 XCode。

那么,如何让配置脚本识别出我已安装所需的 pkgs/libs/frmwrks 呢?

相关内容