title: Using Ruby Enterprise Edition, gems are not installed where I would expect
body: <p>I have just installed Ruby Enterprise Edition and am installing some gems for it. Stock Ruby 1.8.6 is also installed on the server.</p>
  
  <p>I have added <code>/opt/ruby-enterprise-1.8.6-20090201/bin</code> to my <code>PATH</code> a head of <code>/usr/bin</code> where <code>ruby</code> and <code>gem</code> live.</p>
  
  <p><code>which gem</code> confirms this:</p>
  
  <p><code>/opt/ruby-enterprise-1.8.6-20090201/bin/gem</code></p>
  
  <p>However, when I install gems like this:</p>
  
  <p><code>gem install some_gem</code></p>
  
  <p>They end up in <code>/usr/lib/ruby/gems/1.8/gems/</code> instead of <code>/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/</code>. </p>
  
  <p>But if I use <code>/opt/ruby-enterprise-1.8.6-20090201/bin/gem install some_gem</code> it <em>does</em> go into REE's gem directory.</p>
  
  <p>I don't get it. Is there some config option I have to change? I <em>am</em> using sudo here. Maybe that has something to do with it?</p>