我有以下问题。我正在尝试将"redmine_backlogs“1.0.6版插件安装在带有Redmine 3.2.0和Ruby2.0.0版本的环境中
问题是,当我下载插件时,我将其托管在redmine安装的插件目录中,当遵循文档说明时,我发出命令bundle exec rake db: migrate会给我以下错误:
[!] There was an error parsing `Gemfile`:
[!] There was an error parsing `Gemfile`: You cannot specify the same gem twice with different version requirements.
You specified: capybara (> = 0) and capybara (~> 1.1.0). Bundler cannot continue.
# from / var / www / redmine / plugins / redmine_backlogs / Gemfile: 51
# -------------------------------------------
# unless chiliproject
> gem "capybara", "~> 1.1.0"
# gem "poltergeist", "~> 0.6.0"
# -------------------------------------------
. Bundler cannot continue.
# from / var / www / redmine / Gemfile: 110
# -------------------------------------------
# Dir.glob File.expand_path ("../ plugins / * / {Gemfile, PluginGemfile}", __FILE__) do | file |
> eval_gemfile file
# end
# -------------------------------------------我找不到一种方法来解决它,所以它是正确安装的。
有什么额外的帮助吗?
非常提前感谢您。
发布于 2019-12-18 09:14:35
您的插件在其根目录中有一个Gemfile,其中包含一个capybara gem条目。
Bundler现在抱怨说,因为Redmine或其他插件在他们的Gemfile中有一个相同库的条目,但版本要求相互冲突。
由于Capybara仅用于运行测试,因此将该行从backlog插件的Gemfile中删除应该是安全的。
https://stackoverflow.com/questions/59371876
复制相似问题