3

我正在尝试在 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

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

4

1 回答 1

4

*解决了*

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

取消设置 DYLD_LIBRARY_PATH 环境变量修复了这个问题。

任何在他们的 Mac 上使用 Oracle 客户端的人都应该警惕这一点!

于 2013-03-15T18:01:47.093 回答