我刚刚升级到 osx mavericks,我想安装 ruby 2.0,但我遇到了configure: error: cannot run C compiled programs.
错误。
我使用更新 rvm,rvm get stable
然后键入rvm install 2.0.0
并收到一个错误,将我定向到日志文件。日志文件包含:
configure: WARNING: unrecognized options: --without-tcl, --without-tk
checking build system type... x86_64-apple-darwin13.0.0
checking host system type... x86_64-apple-darwin13.0.0
checking target system type... x86_64-apple-darwin13.0.0
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... configure: error: in `/Users/mattroberts/.rvm/src/ruby-2.0.0-p247':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
因此,我尝试列出我拥有的版本。它告诉我我有1.9.3-p392
,所以我卸载了那个并重新安装以查看它是否有效 - 同样的错误。
我需要重新安装/更新 xcode,还是有其他解决方案?
谢谢!