No binary rubies available for: osx/10.8/x86_64/ru

2019-04-12 04:58发布

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 has now changed to rvm get head. However, after that I blindly did

rvm --force install 1.9.2

and got this error message

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.

Looking at RVM website, I blindly did

rvm install 1.9.2

I got this error

ruby-1.9.2-p320 is not installed. To install do: '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`.

Can anyone provide some guidance

标签: ruby rvm
2条回答
老娘就宠你
2楼-- · 2019-04-12 05:10

you need to run:

rvm get head
rvm autolibs enable
rvm use --install 1.9.2
bundle install
查看更多
你好瞎i
3楼-- · 2019-04-12 05:20

firstly, Install "Command line Tools" from inside Xcode after you'll be good to install "RVM Requirements" and Ruby.

查看更多
登录 后发表回答