【发布时间】:2013-10-25 16:11:39
【问题描述】:
我刚刚升级到 osx mavericks,我想安装 ruby 2.0,但我收到了 configure: error: cannot run C compiled programs. 错误。
我用rvm get stable 更新rvm,然后输入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,还是有其他解决方案?
谢谢!
【问题讨论】:
标签: ruby rvm osx-mavericks