相关疑难解决方法(0)

如何在Mac OS X Lion中安装Ruby 1.9.3?

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

rvm install 1.9.3
Run Code Online (Sandbox Code Playgroud)

输出说:

ERROR: Error running ' ./configure....
Run Code Online (Sandbox Code Playgroud)

日志说:

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
Run Code Online (Sandbox Code Playgroud)

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

ruby macos osx-lion

56
推荐指数
6
解决办法
5万
查看次数

标签 统计

macos ×1

osx-lion ×1

ruby ×1