2013-03-15 114 views
3

我正在尝试在OS X 10.8.3上执行fontconfig的brew安装,并且我正在抛出一个令人讨厌的错误。我安装了XCode 4.6.1。在OS X上Brew安装失败 - 可能与新XCode有关

$ brew install fontconfig 
==> Installing fontconfig dependency: pkg-config 
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pkg-config-0.28.mountain_lion.bottle.tar.gz 
######################################################################## 100.0% 
==> Pouring pkg-config-0.28.mountain_lion.bottle.tar.gz /usr/local/Cellar/pkg-config/0.28: 10 files, 636K 
==> Installing fontconfig 
==> Downloading http://fontconfig.org/release/fontconfig-2.10.91.tar.gz Already downloaded: /Library/Caches/Homebrew/fontconfig-2.10.91.tar.gz 
==> Patching patching file src/fcarch.h 
==> ./configure --with-add-fonts=/Library/Fonts,~/Library/Fonts --prefix=/usr/local/Cellar/fontconfig/2.10.91 
==> make install 
ld: symbol(s) not found for architecture x86_64 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 
make[2]: *** [libfontconfig.la] Error 1 
make[1]: *** [install] Error 2 
make: *** [install-recursive] Error 1 

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting 

似乎很少有关于这个问题的信息,这是非常痛苦的。

回答

4

*解决*

原来我有DYLD_LIBRARY_PATH环境变量设定Oracle使用,并且这是导致参考32位库。

取消设置DYLD_LIBRARY_PATH env变量修复了此问题。

任何在他们的mac上使用Oracle客户端的人都应该小心!