我在安装完整版的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使用系统 –