我正在尝试安装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并安装了它.