OS X上的Brew安装失败 - 可能与新的XCode有关

时间:2013-03-15 15:40:13

标签: macos osx-mountain-lion homebrew fontconfig

我正在尝试在OS X 10.8.3上进行fontconfig的brew安装,并且我遇到了一个令人讨厌的错误。我安装了XCode 4.6.1。

$ 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

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

1 个答案:

答案 0 :(得分:4)

<强> *解决*

原来我将DYLD_LIBRARY_PATH env变量设置为与Oracle一起使用,这导致了对32位库的引用。

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

任何在Mac上使用Oracle客户端的人都应该对此保持警惕!