在将 Mac 升级到 Lion 并从 App Store 安装新的 Xcode 4.1 后,我试图通过 RVM 安装最新版本的 Ruby。我在日志中收到此错误:
[2011-07-20 16:57:15] ./configure
--prefix=/Users/justin/.rvm/rubies/ruby-1.9.2-p290 --enable-shared
--disable-install-doc --with-libyaml-dir=/Users/justin/.rvm/usr
configure: WARNING: unrecognized options: --with-libyaml-dir
checking build system type... i386-apple-darwin11.0.0
checking host system type... i386-apple-darwin11.0.0
checking target system type...i386-apple-darwin11.0.0
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/Users/justin/.rvm/src/ruby-1.9.2-p290':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
Run Code Online (Sandbox Code Playgroud)
谁能告诉我出了什么问题?
这在终端:
ruby-1.9.2-p290 - #extracted to /Users/justin/.rvm/src/ruby-1.9.2-p290 (already extracted)
Fetching …Run Code Online (Sandbox Code Playgroud)