Why am I getting this Passenger error Could not find rake-0.9.2.2 in any of the sources?
Solution 1
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.
Solution 2
Had this problem as well, fixed by following the instructions here: http://blog.ninjahideout.com/posts/the-path-to-better-rvm-and-passenger-integration
Solution 3
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.
leonel
Updated on June 04, 2022Comments
-
leonel almost 2 years
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.1.0 and Ruby 1.9.2
Error message: Could not find rake-0.9.2.2 in any of the sources (Bundler::GemNotFound) Exception class: PhusionPassenger::UnknownError
So I added rake-0.9.2.2 to the Gemfile and ran bundle and I'm still getting the same error message.
I have no idea what the problem is, I have even tried to open the rails log files but there is nothing in there.
I have tried many times to fix the error in different ways but nothing seems to work.
I'm thinking it could also have to do with something about the asset pipeline.
ADDED DETAILS
I tried packing the gems and now I got this
bundle show mysql2 /releases/20111117205618/vendor/bundle/ruby/1.9.1/gems/mysql2-0.3.10 bundle show rails /releases/20111117205618/vendor/bundle/ruby/1.9.1/gems/rails-3.1.0 bundle show bundler /usr/local/rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21
Notice the difference between bundler gem and the other ones.
-
mfq about 11 yearsis it good enough for rvm? i guess it will just install all the gem in global part of system or what ever you say ??? how to do it with gemset specific situation ????
-
etlds almost 10 yearsAwesome! You save my life!
-
Kleber S. almost 10 yearshi @etlds, I'm glad it helped you!
-
Jan Wikholm almost 10 yearsIt is better to actually provide the steps here on StackOverflow because that site might go down, the owner might delete the post etc and thus in the future your answer will be a useless link to a 404 post. Or worse yet, the site might not be renewed by current owner and it will fall prey to malware authors and whatnot.
-
JanuskaE over 9 yearsThis made it worse for me