I'm using Ruby 1.8.6 under RVM on Mac OS X (10.9.2). I installed everything as a local user (not root), and then installed a gem using:
gem install gli -v 1.6
When I run a ruby with require('gli')
, I get the error:
in `require': no such file to load -- gli (LoadError)
even though gem list
shows gli (1.6.0)
.
I don't know exactly how RVM does its gemsets, but there is no gli.rb
file in any of the directories in the $LOAD_PATH
.
How does RVM interact with the $LOAD_PATH
to find the necessary gems in the gemset?