我剛剛安裝的Ruby版本管理器1.10.2,並試圖安裝Ruby 1.9.2,我得到以下錯誤:麻煩在Mac OSX 10.6.8雪安裝Ruby豹
ayman-al-abdullahs-macbook:~ Terminal$ rvm install 1.9.2
Fetching yaml-0.1.4.tar.gz to /Users/Terminal/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/Terminal/.rvm/src
Configuring yaml in /Users/Terminal/.rvm/src/yaml-0.1.4.
Error running ' ./configure --prefix="/Users/Terminal/.rvm/usr" ', please read /Users/Terminal/.rvm/log/ruby-1.9.2-p290/yaml/configure.log
Compiling yaml in /Users/Terminal/.rvm/src/yaml-0.1.4.
Error running 'make ', please read /Users/Terminal/.rvm/log/ruby-1.9.2- p290/yaml/make.log
Database file /Users/Terminal/.rvm/config/packages does not exist.
Installing Ruby from source to: /Users/Terminal/.rvm/rubies/ruby-1.9.2-p290, this may take a while depending on your cpu(s)...
ruby-1.9.2-p290 - #fetching
ruby-1.9.2-p290 - #extracting ruby-1.9.2-p290 to /Users/Terminal/.rvm/src/ruby-1.9.2- p290
ruby-1.9.2-p290 - #extracted to /Users/Terminal/.rvm/src/ruby-1.9.2-p290
ruby-1.9.2-p290 - #configuring
Error running ' ./configure --prefix=/Users/Terminal/.rvm/rubies/ruby-1.9.2-p290 -- enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/Terminal/.rvm/usr ', please read /Users/Terminal/.rvm/log/ruby-1.9.2-p290/configure.log
There has been an error while running configure. Halting the installation.
我打開.rvm /log/ruby-1.9.2-p290/configure.log我收到以下錯誤:
[2012-02-10 21:14:02] ./configure --prefix=/Users/Terminal/.rvm/rubies/ruby-1.9.2-p290 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/Terminal/.rvm/usr
configure: WARNING: unrecognized options: --with-libyaml
checking build system type... i386-apple-darwin10.8.0
checking host system type... i386-apple-darwin10.8.0
checking target system type... i386-apple-darwin10.8.0
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/Users/Terminal/.rvm/src/ruby-1.9.2-p290':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
我試圖RM文件並重新安裝它,我仍然得到同樣的錯誤。
有沒有人有任何線索可能是什麼?
謝謝!
UPDATEUPDATE
定了!
從Apple下載xcode需要您是開發人員(99美元),或者需要爲10.7版本(需要Lion)支付5美元。
我能夠購買專爲Snow Leapard(4.0.2)製作的舊版XCode。下載並安裝Ruby 1.9.3版後,它運行完美。
謝謝大家的幫助!
讓我知道是否有其他人遇到同樣的問題,我很樂意帶您通過我的終端步驟(保存終端日誌)。
可能是你使用sudo安裝了rvm嗎? – iltempo 2012-02-11 09:00:58
如何檢查我是否做到了? – aalab002 2012-02-13 21:01:58