【发布时间】:2015-03-08 20:51:55
【问题描述】:
当我启动 rails 时:
$ rails s
我明白了:
/Users/snowcrash/.rvm/gems/ruby-2.1.5@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find rake-10.4.2 in any of the sources (Bundler::GemNotFound)
所以,我跑了bundle install:
$ bundle install
Using rake 10.4.2
但gem list rake 给出:
*** LOCAL GEMS ***
rake (10.1.0, 10.0.4)
我怎么没有安装rake 10.4.2?
另外,当我运行 bundle check 时,它会告诉我:
The Gemfile's dependencies are satisfied
这似乎不正确。为什么?
==== 更新
我通过以下方式解决了rake 的问题:
gem install rake
但为什么我必须手动安装它?我以为那是 Bundler 的工作。
尝试再次启动 rails 给了我另一个问题:
Could not find multi_json-1.10.1 in any of the sources (Bundler::GemNotFound)
显然这里存在一些潜在的问题。有什么建议吗?
【问题讨论】: