17 Aug 2012 14:34
Debugging failed Ruby Gem require
Shareef J. <lists <at> ruby-forum.com>
2012-08-17 12:34:42 GMT
2012-08-17 12:34:42 GMT
Hi there,
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
follows:
<internal:lib/rubygems/custom_require>:29:in `require': no such file to
load -- micro-optparse (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from /home/sjalloq/bin/checkout:3:in `<main>'
The gem was installed using 'gem install ...' and I can list the gem:
$ gem list mic
*** LOCAL GEMS ***
micro-optparse (1.1.5)
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
this further?
$ gem --version
1.3.7
(Continue reading)
RSS Feed