我刚刚升级到osx mavericks,我想安装Ruby2.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,或者有其他解决方案?
谢谢!
https://stackoverflow.com/questions/19594719
复制相似问题