问题描述
我有一个使用 rails s
运行良好的 rails 应用程序,但是当我尝试使用 pow 加载它时,我收到此错误:
I have a rails app that runs fine with rails s
, but when I try to load it using pow I'm getting this error:
Bundler::GemNotFound: Could not find rake-0.9.2.2 in any of the sources
~/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.22/lib/bundler/spec_set.rb:88:in `block in materialize'
~/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.22/lib/bundler/spec_set.rb:82:in `map!'
~/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.22/lib/bundler/spec_set.rb:82:in `materialize'
....
奇怪的是,这个应用程序中的 .rvmrc 文件指定了 1.9.3-p125
:
Weird thing is, the .rvmrc file in this app specifies 1.9.3-p125
:
which rake
.../.rvm/gems/ruby-1.9.3-p125/bin/rake
这是我在运行 bundle install
时看到的:
and here's what I see when I run bundle install
:
Using rake (0.9.2.2)
FWIW,pow 与另一个使用 1.9.2 和不同 gemset 的非 Rails 项目配合得很好.
FWIW, pow works just fine with another non-rails project using 1.9.2 and a different gemset.
谢谢!
推荐答案
我猜你更新了 RVM 并遇到了这个已知问题:https://github.com/37signals/pow/issues/271
I guess you updated RVM and run into this known issue: https://github.com/37signals/pow/issues/271
最简单的解决方案是在项目目录中运行它:
the easiest solution is to run it in project dir:
rvm env . > .powenv
或:
cd /project/path # with .rvmrc
rvm env > .powenv
这篇关于pow 说:Bundler::GemNotFound:在任何来源中都找不到 rake-0.9.2.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!