title: running rake fails with Gem::GemNotFoundException ERR
body: <p><strong>Backstory:</strong></p>
  
  <p>New to rails and attempting to install Passenger on a Mediatemple DV server. I am following and somewhat modifying this CentOS guide here since MT currently does not have any recommended 'how tos' regarding setting up a Rails production environment <a href="http://www.freshblurbs.com/installing-ruby-rails-3-centos-nginx" rel="nofollow">http://www.freshblurbs.com/installing-ruby-rails-3-centos-nginx</a>. </p>
  
  <p>I have fresh-ly installed gem and then ran gem install rake as root. Now, anytime I try to run </p>
  
  <pre><code>rake some_task
  </code></pre>
  
  <p>I get the following error</p>
  
  <pre><code>/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:370:in `bin_path': 
  can't find gem rake (["&gt;= 0"]) with executable rake (Gem::GemNotFoundException)
  from /usr/local/bin/rake:19:in `&lt;main&gt;'
  </code></pre>
  
  <p>rake is installed here /usr/local/bin/rake</p>
  
  <p>$PATH is /usr/kerberos/sbin:/usr/kerberos/bin://sbin://bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/bin:/usr/local/bin:/root/bin:/usr/bin:/usr/local/lib</p>
  
  <p>output of gem which rake is /usr/local/lib/ruby/1.9.1/rake.rb</p>
  
  <p>... and unfortunately that's about all I got up my sleeves. What am I missing that's causing this to bomb?</p>
  
  <p>Thanks in advance!</p>