【问题标题】:Error installing backlogs plugin in Redmine在 Redmine 中安装积压插件时出错
【发布时间】:2020-04-09 19:36:15
【问题描述】:

我有以下问题。我正在尝试在带有 Ruby 2.0.0 版本的 Redmine 3.2.0 环境中安装“redmine_backlogs”版本 1.0.6 插件

当我下载插件时出现问题,我将它托管在我的 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
 # -------------------------------------------

我找不到解决方法以便正确安装。

有什么额外的帮助吗?

非常感谢您。

【问题讨论】:

  • 一般建议:积压插件不再处于积极开发中,并且根据backlogs.github.io/www 不支持Redmine 3.x 根本。您可能想四处寻找替代方案(即 Redmine Agile 插件)。

标签: redmine backlog


【解决方案1】:

您的插件在其根目录中有一个Gemfile,其中有一个capybara gem 的条目。

Bundler 现在抱怨,因为 Redmine 或其他插件在其 Gemfile 中有相同库的条目,但版本要求冲突。

由于 Capybara 仅用于运行测试,因此从 backlog 插件的 Gemfile 中删除该行应该是安全的。

【讨论】:

  • 感谢您的回复。最后我必须删除一些给我同样错误的 gem。
  • 完成!现在错误不同了:rake aborted! ArgumentError:范围主体需要可调用。当我执行 rake redmine:plugins:migrate
  • 这很可能是因为 backlogs 插件不适合与 Redmine 3 使用的 Rails 版本一起使用。就像我在之前的评论中所说的那样 - 不要使用它,它是无人维护的。
猜你喜欢
  • 1970-01-01
  • 2013-06-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-04-17
  • 2012-05-28
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多