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.
什麼是在configure.log? –
你應該安裝Xcode –
'要安裝:'rvm install ruby-1.9.3 -p374''你有試過嗎? – davids