No binary rubies available for: osx/10.8/x86_64/ruby-1.9.2-p320

最后都变了- 提交于 2019-12-07 14:57:27

问题


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


回答1:


you need to run:

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



回答2:


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



来源:https://stackoverflow.com/questions/14114976/no-binary-rubies-available-for-osx-10-8-x86-64-ruby-1-9-2-p320

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!