tag:help.rubygems.org,2010-01-19:/discussions/problems/160-gems-wont-loadRubyGems.org: Discussion 2011-04-07T20:59:27Ztag:help.rubygems.org,2010-01-19:Comment/16626122010-05-12T04:17:39Z2010-05-12T04:17:39ZGems won't load<div><p>That's definitely wacky.... what happens if you just launch
<code>irb</code> and do</p>
<pre>
<code>require 'rubygems'
require 'nokogiri'</code>
</pre>
<p>The same? Maybe show us the output of <code>require 'pp'; pp
$LOAD_PATH</code> after requiring RubyGems too.</p></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/16626122010-05-12T12:11:40Z2010-05-12T12:11:40ZGems won't load<div><p>In that case, the required path is absent. I'm confused. IRB
doesn't read the PATH when it starts?</p>
<pre>
<code>irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'nokogiri'
LoadError: no such file to load -- nokogiri
from (irb):2:in `require'
from (irb):2
from /usr/bin/irb:12:in `<main>'
irb(main):003:0> require 'pp'
=> true
irb(main):004:0> pp $LOAD_PATH
["/usr/local/lib/site_ruby/1.9.1",
"/usr/local/lib/site_ruby/1.9.1/i486-linux",
"/usr/local/lib/site_ruby",
"/usr/lib/ruby/vendor_ruby/1.9.1",
"/usr/lib/ruby/vendor_ruby/1.9.1/i486-linux",
"/usr/lib/ruby/vendor_ruby",
"/usr/lib/ruby/1.9.1",
"/usr/lib/ruby/1.9.1/i486-linux",
"."]
=> nil</code>
</pre></div>Coreytag:help.rubygems.org,2010-01-19:Comment/16626122010-05-12T18:06:47Z2010-05-12T18:06:47ZGems won't load<div><p>"Based off Debian" is the problem. Ruby 1.9.1 ships with
RubyGems which provides an alternative to RubyGems
rubygems/custom_require.rb which Debian has removed.</p>
<p>Since RubyGems expects that alternative to exist custom_require
won't be loaded on 1.9.1. I'm not sure what the official Debian
solution to this problem is, but installing ruby from source will
fix it.</p></div>Eric Hodel