我有在Mac OS X Lion上運行的Ruby 1.9.3(因爲普通的home brew安裝不起作用,我不得不使用RVM),然後安裝Mountain Lion(或其後續更新)導致Ruby 1.9.3不再安裝+所有的寶石已被卸載,並且我回到了Ruby 1.8.7上需要在Mac OS X上安裝Ruby 1.9.3 Mountain Lion
我安裝了最新的XCode版本(4.4.1),並且我已經嘗試了來自類似的StackOverflow問題的多個不同的建議,但都沒有成功。
我想要的是一個全新的開始(如果可能的話),我想請教如何徹底卸載我已經安裝的Ruby和RVM的任何廢話並重新開始!那麼也許我可以安裝Ruby 1.9.3
得到幫助,但我可以給你我在這是失敗的那一刻做什麼的想法...
執行
ruby -v
結果ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
執行
rvm -v
結果rvm 1.15.7 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
執行
brew upgrade ruby
結果:http://pastebin.com/KetSau7k執行
rvm install 1.9.3
結果:http://pastebin.com/8YKg4wXb - 這當我再按下q
退出它繼續嘗試和安裝失敗...
從源頭上安裝Ruby:/用戶/ markmcdonnell /。 RVM /紅寶石/紅寶石1.9.3-P194,這可能取決於你的CPU(S)需要一段時間...
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
ruby-1.9.3-p194 - #extracted to /Users/markmcdonnell/.rvm/src/ruby-1.9.3-p194 (already extracted)
ruby-1.9.3-p194 - #configuring
Error running ' ./configure --prefix=/Users/markmcdonnell/.rvm/rubies/ruby-1.9.3-p194 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/markmcdonnell/.rvm/usr ', please read /Users/markmcdonnell/.rvm/log/ruby-1.9.3-p194/configure.log
There has been an error while running configure. Halting the installation.
- 我也試過
rvm install 1.9.3 --with-gcc=clang
但最初的消息後,你已經看到已經(在這裏我按q
退出消息,並繼續與安裝),那麼它告訴我You requested building with 'clang' but it is not in your path.
還有我執行,試圖讓這一批我已經安裝了其他的東西,命令爆炸Ruby 1.9.3安裝,但沒有任何工作 - 因此,我認爲我可能需要從頭開始(如果可能?)。
任何幫助獲得這個安裝(以及一些清理)以及對不是非常Bash/CLI頭腦的人的解釋將不勝感激!
謝謝。
此問題可能會在http://apple.stackexchange.com/上發佈時引起更多關注。 –
您是否已經安裝了用於xcode的命令行工具? – nikhil