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

时间:2013-01-01 22:52:46

标签: ruby rvm

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

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`.

任何人都可以提供一些指导

2 个答案:

答案 0 :(得分:6)

你需要运行:

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

答案 1 :(得分:1)

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