【发布时间】:2011-12-16 15:45:08
【问题描述】:
我的问题已经被问到here,但我试图了解其背后的原因,而不是如何解决它。
我得到的错误是;
You have already activated rspec-core 2.7.1, but your Gemfile requires rspec-core 2.6.4. Using bundle exec may solve this. (Gem::LoadError)
现在我得到了各种解决方案,比如使用“mpapis-bundler”,或者创建“bundle exec”的简写,但我的印象是那是什么
$bundle install --binstubs
是为了。
更具体地说,由于我的 gemfile 中没有为 rspec-rails 指定版本号,为什么会出现这种不兼容性?我尝试的时候也出现了错误
$rake db:migrate
告诉我
You have already activated rake 0.9.2.2, but your Gemfile requires rake 0.9.2. Consider using bundle exec.
任何解释都将不胜感激。
编辑:
我的应用程序的所有宝石都在一个宝石集中,我再次更新了我的宝石。更新不应该确保相关的 gem 兼容吗?
【问题讨论】:
标签: ruby-on-rails rspec ruby-on-rails-3.1 bundler gemfile