首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >在mavericks上安装带有RVM的任何版本的ruby

在mavericks上安装带有RVM的任何版本的ruby
EN

Stack Overflow用户
提问于 2013-10-26 00:11:39
回答 5查看 15.9K关注 0票数 17

我刚刚升级到osx mavericks,我想安装Ruby2.0,但是我收到了configure: error: cannot run C compiled programs.错误。

我使用rvm get stable更新了rvm,然后输入rvm install 2.0.0,然后得到一个错误消息,将我定向到一个日志文件。日志文件包含:

代码语言:javascript
复制
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,或者有其他解决方案?

谢谢!

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19594719

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档