1

我将不胜感激安装Ruby 1.9.3-p374Mountain Lion OS X.

我是 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.
4

1 回答 1

0

在尝试更新之前我已经安装了 xcode,但是安装“Xcode 的命令行工具(OS X Mountain Lion)-2012 年 11 月',21423)”似乎已经对其进行了排序-感谢大家的建议

于 2013-01-31T05:45:03.457 回答