cannot load such file -- rubygems/defaults/operating_system when installing Ruby 2.0.0
Try installing Ruby using the --rubygems ignore
option:
$ rvm install ruby-2.0.0 --rubygems ignore
Installation of rubygems fails when trying to install Ruby 2.0.0 with RVM
Well, I finally managed to fix it! Sorry if I ended up polluting SO. I'll reply to my question anyway in case somebody runs into similar problems and ends up here in the future.
It turned out I had a messed up installation of libyaml
, "Installed but not linked", according to Homebrew. I figured it out after trying this solution. So I uninstalled libyaml
and killed it with sudo rm -rf
and installed it again. I ran into this problem but the accepted answer solved it. After this I installed RVM from scratch with stable ruby and it finally worked!
Something wrong with my ruby
The system ruby installation seems to be messed up. Try removing the offending /Library/Ruby/Site/2.0.0/rubygems.rb
(and may be more of enclosing folders)
Ruby have its bundled rubygems at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0
so it should work with these.
Once ruby is alive - you can try upgrading rubygems again by sudo gem update --system
if needed, but I advise setting up a ruby version manager like rvm
(rvm.io) and leave the system ruby be there only for emergences and backing the brew
.
Related Topics
Is Communication Between Two Ruby Processes Possible/Easy
Trying to Get Svn2Git Working on Windows
How to "Nest" the Inclusion of Modules When Using the Ruby on Rails Activesupport::Concern Feature
Remove Element at Specific Index from Redis List
Carrierwave: Create 1 Uploader for Multiple Types of Files
Installing Pl/Ruby for Postgresql 8.3
Factory_Girl + Rspec Doesn't Seem to Roll Back Changes After Each Example
Converting External CSS to Inline CSS for Mail in Rails
What Do I Need to Do to Get Hash.From_Xml() to Work
Ruby on Rails: Two References with Different Name to the Same Model
Gem Install Dm-Postgres-Adapter Build Error
Package Configuration for Libffi Is Not Found in MACos While Installing Travis-Cli
An Error Occurred While Installing Curb (0.8.5)
How to Get The Pty.Spawn Child Exit Code
Ip Range to Cidr in Ruby/Rails
Ruby, How to Add a Param to an Url That You Don't Know If It Has Any Other Param Already