I recently used RVM to update Ruby from 1.8.3 to 2.0.0. The update was successful, and I'm able to run 2.0.0 in the command line just fine.
The problem is, I went to work on a project that uses the Compass/Sass gem, and when I tried running the compass watch
command from the shell, I got this error:
/Library/Ruby/Site/1.8/rubygems/dependency.rb:298:in `to_specs': Could not find 'compass' (>= 0) among 7 total gem(s) (Gem::LoadError)
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:309:in `to_spec'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_gem.rb:53:in `gem'
from /usr/bin/compass:22
My original version of Ruby stores all the gems I've installed here:
/Library/Ruby/Gems
But the RVM update to 2.0.0 lists the gems as being kept here:
/Users/Jim/.rvm/gems/ruby-2.0.0-p481@global/gems
How do I get RVM to update the original gems so that I can use them with my current version of Ruby? And will this require me to reinstall the gems on the project I have that depends upon compass?
I've read lots of the documentation at rvm.io, and thought the 'rvm gemset update' would work. I also tried 'rvm do gemset update' and 'rvm all do gemset update' but it's not finding the old gems.
Does anyone have ideas how I might point RVM to my old gems and get it to update them into a gemset that 2.0.0 can use?