Ruby on rails 3 Bundle exec不';行不通
我正在尝试使用。我最后一次使用它是在二月,效果很好 我尝试使用Ruby on rails 3 Bundle exec不';行不通,ruby-on-rails-3,bundler,Ruby On Rails 3,Bundler,我正在尝试使用。我最后一次使用它是在二月,效果很好 我尝试使用erd和bundle exec-erd 我得到了这个错误。。我在另一个项目中使用了rails 4,但在这个项目中,我在gem文件中使用了rails 3.2.15 Loading application in 'my_app'... WARN: Unresolved specs during Gem::Specification.reset: activerecord (>= 3.0) i18n (>
erd
和bundle exec-erd
我得到了这个错误。。我在另一个项目中使用了rails 4,但在这个项目中,我在gem文件中使用了rails 3.2.15
Loading application in 'my_app'...
WARN: Unresolved specs during Gem::Specification.reset:
activerecord (>= 3.0)
i18n (>= 0.6.4, ~> 0.6)
multi_json (~> 1.3)
tzinfo (~> 0.3.37)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Failed: Gem::LoadError: You have already activated activesupport 4.0.0, but your Gemfile requires activesupport 3.2.15. Using bundle exec may solve this.
这意味着什么?我该如何解决这一问题?在应用程序的GEM文件中指定Rails的版本(如果尚未指定): gem“轨道”,“3.2.15” 运行bundle安装,然后尝试使用bundle exec再次运行脚本 如果仍然无法工作,请尝试卸载rails 4,然后运行它 gem卸载rails
理想情况下,如果您使用bundle exec执行脚本,它将始终使用Gemfile在当前bundle的上下文中执行脚本。错误表明您已经激活了activesupport 4.0.0,但在
Gemfile.lock
文件中,activesupport的版本为3.2.15。
因此,只需删除gemfile.lock
文件,然后再次进行捆绑安装
它将采用最新版本的activesupportor,或者您可以手动更改版本。请向我们显示您为获取此错误而运行的完整命令。抱歉,已将其添加到问题中