我尝试使用RVM安装ruby 1.9.2和1.9.3。它失败了,因为其中一个依赖项似乎是gcc46,而rvm使用brew来安装它。
rbanerjee:~ $ sudo brew install gcc46
==> Installing dependencies for gcc46: gmp4, mpfr2, libmpc08, ppl011, cloog-ppl015
==> Installing gcc46 dependency: gmp4
==> Downloading ftp://ftp.gmplib.org/pub/gmp-4.3.2/gmp-4.3.2.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gmp4-4.3.2.tar.bz2
==> Patching
==> ./configure --prefix=/usr/local/Cellar/gmp4/4.3.2 --enable-cxx --build=x86_64-apple-darwin
checking ABI=64
checking compiler clang ... no
checking ABI=32
checking compiler clang ... no
configure: error: could not find a working compiler, see config.log for details
但是clang在那里工作:
rbanerjee:~ $ which clang
/usr/bin/clang
rbanerjee:~ $ clang -v
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix
很奇怪版本是4.2,因为我安装了Xcode 4.6.3和命令行工具4.6.3。 xcrun似乎也是一个问题。挖掘gcc46日志会导致无法安装gmp4: 在〜/ Library / Logs / Homebrew / gmp4 / config.log
中/usr/local/Library/ENV/4.3/clang:338:in `exec': No such file or directory - xcrun (Errno::ENOENT)
from /usr/local/Library/ENV/4.3/clang:338
有什么想法吗?提前致谢。 OSX Lion。这是我的所有系统信息: