为什么我得到这个乘客错误在任何来源找不到rake-0.9.2.2? [英] Why am I getting this Passenger error Could not find rake-0.9.2.2 in any of the sources?

查看:159
本文介绍了为什么我得到这个乘客错误在任何来源找不到rake-0.9.2.2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚创建了一个新的空的Rails应用程序,它几乎是空的。我创建它只是为了试图找出问题,但我收到以下错误。



我使用的是Rails 3.1.0和Ruby 1.9.2

 错误消息:
在任何源(Bundler :: GemNotFound)$ b中找不到rake-0.9.2.2
异常类:
PhusionPassenger :: UnknownError

所以我添加了rake-0.9.2.2到Gemfile并运行捆绑,我仍然收到相同的错误消息。



我不知道是什么问题,我甚至试图打开rails日志文件,但没有任何内容。



我已经尝试过多次,以不同的方式修复错误,但没有任何效果。



我认为这也可能与资产管道有关。



添加的详细信息



我尝试包装宝石,现在我得到这个

  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

通知捆绑宝石与其他宝石之间的区别。

解决方案

我修复了同样的错误,把宝石包装成这样的供应商/捆绑:



从您的应用程序目录中:

  $ bundle install  - -path供应商/捆绑

给一个镜头,告诉我是否适用于你。

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.

解决方案

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.

这篇关于为什么我得到这个乘客错误在任何来源找不到rake-0.9.2.2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆