如何在Mac OS X Lion中安装Ruby 1.9.3? [英] How can I install Ruby 1.9.3 in Mac OS X Lion?

查看:93
本文介绍了如何在Mac OS X Lion中安装Ruby 1.9.3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装Ruby 1.9.3,但是遇到了问题. 我安装了RVM,然后键入:

I am trying to install Ruby 1.9.3 but am having problems. I installed RVM, then typed:

rvm install 1.9.3

输出显示:

ERROR: Error running ' ./configure....

日志显示:

configure: WARNING: unrecognized options: --with-libyaml-dir 
checking build system type... x86_64-apple-darwin11.2.0 
checking host system type... x86_64-apple-darwin11.2.0 
checking target system type...x86_64-apple-darwin11.2.0 
checking whether the C compiler works... no
configure: error: in `/Users/myuser/.rvm/src/ruby-1.9.3-p0':
configure: error: C compiler cannot create executables See `config.log' for more details

我从App Store下载了新的XCode并安装了它.

I downloaded the new XCode from the App Store and installed it.

推荐答案

尝试使用clang编译器代替默认编译器:

Try using the clang compiler instead of the default:

rvm install 1.9.3 --with-gcc=clang

这篇关于如何在Mac OS X Lion中安装Ruby 1.9.3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆