安装Ruby 1.9.3-p374时配置错误

安装Ruby 1.9.3-p374时配置错误,ruby,osx-mountain-lion,Ruby,Osx Mountain Lion,如果能在Mountain Lion OS X上安装Ruby 1.9.3-p374,我将不胜感激 我是ruby新手,目前正在尝试从1.8.7升级,但每当我在命令行中输入rvm install 1.9.3-p374时,我会得到: user-macbook-pro-2:~ user$ rvm install 1.9.3-p374 No binary rubies available for: downloads/ruby-1.9.3-p374. Continuing with compilation.

如果能在Mountain Lion OS X上安装Ruby 1.9.3-p374,我将不胜感激

我是ruby新手,目前正在尝试从1.8.7升级,但每当我在命令行中输入rvm install 1.9.3-p374时,我会得到:

user-macbook-pro-2:~ user$ rvm install 1.9.3-p374
No binary rubies available for: downloads/ruby-1.9.3-p374.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing Ruby from source to: /Users/user/.rvm/rubies/ruby-1.9.3-p374, this may take a while depending on your cpu(s)...
ruby-1.9.3-p374 - #downloading ruby-1.9.3-p374, this may take a while depending on your connection...
ruby-1.9.3-p374 - #extracted to /Users/user/.rvm/src/ruby-1.9.3-p374 (already extracted)
ruby-1.9.3-p374 - #configuring
Error running './configure --enable-shared --disable-install-doc --prefix=/Users/user/.rvm/rubies/ruby-1.9.3-p374 --with-opt-dir=/Users/user/.rvm/usr', please read /Users/user/.rvm/log/ruby-1.9.3-p374/configure.log
There has been an error while running configure. Halting the installation.

ruby-1.9.3-p374 is not installed.
To install do: 'rvm install ruby-1.9.3-p374'
对于如何解决这一问题的任何帮助,我们将不胜感激。错误部分复制如下:

  Error running './configure --enable-shared --disable-install-doc --prefix=/Users/user/.rvm/rubies/ruby-1.9.3-p374 --with-opt-dir=/Users/user/.rvm/usr', please read /Users/user/.rvm/log/ruby-1.9.3-p374/configure.log
    There has been an error while running configure. Halting the installation.

    ruby-1.9.3-p374 is not installed.
configure.log读取

[2013-01-23 08:00:31] ./configure --enable-shared --disable-install-doc --prefix=/Users/user/.rvm/rubies/ruby-1.9.3-p374 --with-opt-dir=/Users/user/.rvm/usr
checking build system type... i386-apple-darwin12.2.0
checking host system type... i386-apple-darwin12.2.0
checking target system type... i386-apple-darwin12.2.0
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

在尝试更新之前,我已经安装了xcode,但在2012年11月安装了用于xcode的命令行工具OS X Mountain Lion,21423似乎已经整理好了-感谢大家的建议

configure.log中有什么内容?您应该安装XcodeTo安装程序:“rvm install ruby-1.9.3-p374”您尝试过吗?您运行过“rvm requirements”吗?这将为您提供安装前所需的软件包列表。使用rvm时,Xcode的较新版本可能会比较棘手。查看相关信息。在尝试更新之前,我已经安装了xcode,但是安装命令行工具OS X Mountain Lion for xcode-2012年11月,21423似乎已经解决了问题-谢谢大家的建议