Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
742 views
in Technique[技术] by (71.8m points)

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

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...