2013-01-23 89 views
1

我会很感激我可以通过在Mountain Lion OS X上安装Ruby 1.9.3-p374获得任何帮助。配置错误安装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. 
+0

什么是在configure.log? –

+0

你应该安装Xcode –

+0

'要安装:'rvm install ruby​​-1.9.3 -p374''你有试过吗? – davids

回答

0

我已经安装了Xcode的尝试更新,但安装“命令行工具(OS X山狮)为之前的Xcode - November 2012',21423)“似乎已经排序 - 谢谢大家的建议