我的问题已经在这里被问过,但我试图了解其背后的原因,而不是如何解决它。
我得到的错误是;
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 兼容吗?