title: Ruby 1.9.1 Load Path Craziness
body: <p>Ok, I've just spent the 4 hours trying to figure this one out without success.  I've tried all the usual suspects and googled every combination of ruby 1.9.1, load path, gems, mac os x,freebsd,prawn and other stuff.  The bottom line is this:</p>
  
  <p>When I compile ruby1.9.1-p129 from sources on mac os x 10.5, the default load path ($:) I get is:</p>
  
  <pre>
  ruby -e "puts $:"
  /usr/local/lib/ruby/gems
  /usr/local/lib/ruby/site_ruby/1.9.1
  /usr/local/lib/ruby/site_ruby/1.9.1/i386-darwin9.7.0
  /usr/local/lib/ruby/site_ruby
  /usr/local/lib/ruby/vendor_ruby/1.9.1
  /usr/local/lib/ruby/vendor_ruby/1.9.1/i386-darwin9.7.0
  /usr/local/lib/ruby/vendor_ruby
  /usr/local/lib/ruby/1.9.1
  /usr/local/lib/ruby/1.9.1/i386-darwin9.7.0
  .
  </pre>
  
  <p>when I install the prawn gem, for example, I get:</p>
  
  <pre>
  gem which prawn
  (checking gem prawn-0.5.0.1 for prawn)
  /prawn.rb
  </pre>
  
  <p>and when I try to require it I get:</p>
  
  <pre>
  ruby -e "require 'prawn'"
  -e:1:in `require': no such file to load -- prawn (LoadError)
      from -e:1:in `'
  </pre>
  
  <p>The only way I've been able to resolve this is by doing something stupid like this:</p>
  
  <pre><code>$: &lt;&lt; "/usr/local/lib/ruby/gems/1.9.1/gems/prawn-0.5.0.1/lib"
  </code></pre>
  
  <p>which, of course, is utterly ridiculous. So the question is how do I get ruby 1.9.1 to recognize and follow the correct gems path?  I've never had this issue with 1.8.7 so I'm assuming it 1.9.1 specific.  I feel I'm missing something  completely obvious here and any help would be much appreciated!</p>