乘客 + Rails 3.1.1 = 在任何源中都找不到 rake-0.9.2 (Bundler::GemNotFound)
我知道已经有一些关于此错误的线程,但没有一个线程解决了我的问题。 我使用 Rails 3.1.1 和 RVM Ruby 1.9.2-p180 启动了一个新的 Rails 应用程序。 当我使用 rails server
并转到 localhost:3000 时它可以工作
但是当我尝试使用 Passenger (OSX pref 窗格)像其他 Rails 3.0.x 应用程序一样托管它时 并在浏览器中访问它,我收到以下错误:
Error message:
Could not find rake-0.9.2 in any of the sources (Bundler::GemNotFound)
Exception class:
PhusionPassenger::UnknownError
还有其他人遇到 Rails 3.1.1 和乘客的问题吗?
当我输入 gem list --local 时,我的列表中肯定有 rake 0.9.2,而且我也在正确的 RVM gemset 中。
有什么想法吗?
I know there are already some threads about this error, but none of them solved my problem.
I started a new rails app with rails 3.1.1 and RVM Ruby 1.9.2-p180.
It works when I use rails server
and go to localhost:3000
But when I try to host it like my other Rails 3.0.x apps using Passenger (OSX pref pane)
and visit it in the browser I get the following error:
Error message:
Could not find rake-0.9.2 in any of the sources (Bundler::GemNotFound)
Exception class:
PhusionPassenger::UnknownError
Anybody else experiencing problems with rails 3.1.1 and passenger?
when I type gem list --local
there is definitely rake 0.9.2 in my list, and I am also in the correct RVM gemset.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先检查 Passenger 是否使用正确的 ruby(如果您使用 Apache):
然后检查 RVM + Passenger 指南。
First check if Passenger is using correct ruby (if you use Apache):
Then check RVM + passenger guide.