Reputation: 1
I've installed ruby and the nokogiri gem on my ubuntu linux system, using rvm.
From irb I do "require 'rubygems'". This returns false. Any subsequent attempt to load a gem fails. Attempts to access the gems from scripts in files also produce "no such file to load..."
So, once I've installed gems with rvm, how to I actually access them?
Upvotes: 0
Views: 564
Reputation: 83680
You should switch to ruby version you installed with RVM:
To get the list of installed rubies:
rvm list
#=> rvm rubies
#=> ree-1.8.7-2011.03 [ x86_64 ]
#=> ruby-1.9.2-p180 [ x86_64 ]
Then you can run which one you want:
rvm 1.9.2
Then you can try your gems again
Upvotes: 2