如果我在Ruby 1.9.3-p374
上安装Mountain 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.
答案 0 :(得分:0)
我在尝试更新之前已经安装了xcode,但安装了“Xcode的命令行工具(OS X Mountain Lion) - 2012年11月”,21423)“似乎已经对它进行了排序 - 感谢大家的建议