问题描述
有一篇两年前的博文 此处 解释了如何修复 Nokogiri 附带的您必须先安装开发工具"错误,这是升级到 Mountain 时出现的问题安装 RVM 后的 Lion.在博客文章中,他说你必须这样做
There's a two year old blog post here explaining how to fix the error 'you 'have to install development tools first' error that comes with Nokogiri, a problem that arises if you upgrade to Mountain Lion after having installed RVM. In the blog post he says you have to do
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 update head
has now changed to rvm get head
. However, after that I blindly did
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/
换句话说,它让我回到了同一篇博文.
In other words, it directed me back to the same blog post.
看RVM网站,我是瞎看的
Looking at RVM website, I blindly did
rvm install 1.9.2
我遇到了这个错误
ruby-1.9.2-p320 未安装.安装:'rvm install ruby-1.9.2-p320'
ruby-1.9.2-p320 is not installed.To install do: 'rvm install ruby-1.9.2-p320'
按照它的说明,我做了 rvm install ruby-1.9.2-p320 并得到了相同的二进制错误
Following its instructions, I did rvm install ruby-1.9.2-p320 and got the same binaries error
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
这篇关于没有二进制红宝石可用于:osx/10.8/x86_64/ruby-1.9.2-p320的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!