Why am I getting this Passenger error Could not find rake-0.9.2.2 in any of the sources?

后端 未结 4 2070
日久生厌
日久生厌 2020-12-16 04:13

I just created a new empty Rails app, it\'s almost empty. I created it just to try to pinpoint the problem, but I\'m getting the following error.

I\'m using Rails 3.

相关标签:
4条回答
  • 2020-12-16 04:19

    I had the same problem 'Could not find rake-0.9.2.2 in any of the sources' and found that my PATH did not include /usr/local/bin. After updating the PATH, it worked.

    0 讨论(0)
  • 2020-12-16 04:27

    Had this problem as well, fixed by following the instructions here: http://blog.ninjahideout.com/posts/the-path-to-better-rvm-and-passenger-integration

    0 讨论(0)
  • 2020-12-16 04:30

    I fixed the same error doing packing the gems into vendor/bundle like this:

    From inside your app directory:

    $ bundle install --path vendor/bundle  
    

    Give a shot and tell me if that works to you.

    0 讨论(0)
  • 2020-12-16 04:33

    I think the best answer/solution here is to add the following to your deploy.rb file (assuming Capistrano):

    bundle install --deployment
    

    You can also read the full article and on other deployment engines.

    0 讨论(0)
提交回复
热议问题