没有二进制ruby可用于:osx / 10.8 / x86_64 / ruby​​-1.9.2-p320

这里有一篇为期两年的博客文章,解释了如何修复“你必须首先安装开发工具”的错误’Nokogiri附带的错误,如果你在安装RVM后升级到Mountain Lion会出现这个问题。 在博客文章中他说你必须做

rvm update head rvm --force install 1.9.2 gem install bundle ## in your rails app bundle Installing nokogiri (1.4.2) with native extensions ... 

rvm update head现在已改为rvm get head 。 然而,在那之后我一味地做了

 rvm --force install 1.9.2 

并收到此错误消息

 rvm --force install 1.9.2 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.8/x86_64/ruby-1.9.2-p320. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. The provided compiler '/usr/bin/gcc' is LLVM based, it is not yet fully supported by ruby and gems, please read `rvm requirements`. [1]: http://www.fakingfantastic.com/2010/11/26 /fixing-the-you-have-to-install-development-tools-first-error-with-nokogiri/ 

换句话说,它指示我回到同一篇博文。

看看RVM网站,我一味地做了

 rvm install 1.9.2 

我收到了这个错误

未安装ruby-1.9.2-p320。 要安装do:’rvm install ruby​​-1.9.2-p320′

按照它的说明,我做了rvm install ruby​​-1.9.2-p320并得到了相同的二进制文件错误

 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.8/x86_64/ruby-1.9.2-p320. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. The provided compiler '/usr/bin/gcc' is LLVM based, it is not yet fully supported by ruby and gems, please read `rvm requirements`. 

谁能提供一些指导

你需要运行:

 rvm get head rvm autolibs enable rvm use --install 1.9.2 bundle install 

首先,在您熟悉安装“RVM要求”和Ruby后,从Xcode内部安装“命令行工具”。