title: RoR -- NoMethodError: private method `open' called for Gem::Package:Class
body: <p>Hey does anyone know what this error message means? I installed ruby from source then proceeded to install rubygems, and then installed rails via <code>gem install rails</code></p>
  
  <p>After creating a new project, I did a <code>bundle install</code> and got this error: </p>
  
  <blockquote>
    <p>mark@mark-laptop:~/guide/first_app$ sudo bundle install Fetching
    source index for <a href="https://rubygems.org/">https://rubygems.org/</a></p>
    
    <p>NoMethodError: private method <code>open' called for Gem::Package:Class An
    error occured while installing rake (0.9.2.2), and Bundler cannot
    continue. Make sure that</code>gem install rake -v '0.9.2.2'` succeeds
    before bundling.</p>
  </blockquote>
  
  <p>I did that command (<code>gem install rake -v '0.9.2.2'</code>) and it worked fine.. I'm rather confused</p>