I’m trying to debug why my Ruby installation cannot find gems even
though we’ve followed what I think is a standard install.
In this case I’m trying to use micro-optparse and the require fails as
require': no such file to load -- micro-optparse (LoadError) from <internal:lib/rubygems/custom_require>:29:inrequire’
from /home/sjalloq/bin/checkout:3:in `’
The gem was installed using ‘gem install …’ and I can list the gem:
$ gem list mic
*** LOCAL GEMS ***
If I set RUBYLIB to point to the gem installation then it loads but I
thought RUBYLIB was only needed for non-standard installs.
Is my understanding of installing gems correct and if so how do I debug
$ gem --version
$ ruby --version
ruby 1.9.2p136 (2010-12-25) [x86_64-linux]