我在安裝完整版的Mountain Lion上安裝Ruby 1.8.7時遇到了很多麻煩。我瀏覽過Stack Overflow,並沒有看到任何具體解決這個問題的東西,並希望以前有人可能遇到過這個問題。在Mountain Lion上安裝Ruby 1.8.7(10.8)
我使用的命令行工具,可以在Xcode
下載我還沒有通過RVM和自制軟件安裝Ruby 1.9.3任何問題。當我嘗試安裝1.8.7我收到以下消息它試圖編譯後:
我第一次運行該命令
rvm install 1.8.7
這給了我這個錯誤
The provided compiler '/usr/bin/gcc' is LLVM based, it is not yet fully supported by ruby and gems, please read `rvm requirements`.
周圍挖掘後有點我試過
rvm install 1.8.7 --with-gcc=clang
Error running 'make ', please read /Users/paulzaich/.rvm/log/ruby-1.8.7-p370/make.log
There has been an error while running make. Halting the installation.
Ruby 'ruby-1.8.7-p370' was built using clang - but it's not (fully) supported, expect errors.
Please be aware that you just installed a ruby that requires 2 patches just to be compiled on up to date linux system.
This may have known and unaccounted for security vulnerabilities.
Please consider upgrading to Ruby 1.9.3-194 which will have all of the latest security patches.
在這一點上,我做了一些更多的搜索,並找到了一些關於需要編譯我自己的readline。 RVM Does Not Install Ruby 1.9.2 on Snow Leopard: 'Error running 'make '
這不幸似乎破壞了我的整個rvm安裝,包括1.9.3。我試圖重新安裝1.9.3,並得到與1.8.7版本相同的錯誤。我在這一點上完全刪除了RVM並重新安裝。再次安裝1.9.3沒問題。
我也嘗試更新基於此職位的所有版本的rvm RVM issue with Mountain Lion。那裏也沒有運氣。
更新:我也嘗試使用this walkthrough REE 1.8.7推薦安裝gcc-4.2。不幸的是不幸運。
更新2:我引用RVM要求和安裝下列包
brew update
brew tap homebrew/dupes
brew install autoconf automake apple-gcc42
rvm pkg install openssl
到目前爲止好。然後我參考this post需要引用GCC編譯器。我確定引用的鏈接可能不正確,因爲我正在使用自制軟件?我發現編譯器在我的Cellar文件夾中,並使用以下命令:
CC=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 rvm install 1.8.7
沒有運氣。和以前一樣的錯誤信息。
您是否意識到,紅寶石com預裝在山獅上是1.8.7嗎? –
我希望能夠使用RVM在紅寶石之間來回移動。 – Paul
您可以使用rvm切換回系統提供的ruby-rvm使用系統 –