backlogs / redmine_backlogs

A Redmine plugin for agile teams
https://backlogs.github.io/www/
GNU General Public License v2.0
773 stars 460 forks source link

HELP - Install error dependences plugin #1121

Open adrianobr opened 8 years ago

adrianobr commented 8 years ago

root@55fd59603001:/home/redmine/redmine/plugins# bundle exec rake redmine:plugins:migrate RAILS_ENV=production NAME=redmine_backlogs

[!] 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: nokogiri (>= 1.6.7.2) and nokogiri (>= 0). Bundler cannot continue.

from /home/redmine/redmine/plugins/redmine_backlogs/Gemfile:11

-------------------------------------------

gem "icalendar"

gem "nokogiri"

gem "open-uri-cached"

-------------------------------------------

. Bundler cannot continue.

from /home/redmine/redmine/Gemfile:114

-------------------------------------------

Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", FILE) do |file|

eval_gemfile file

end

-------------------------------------------

I install all dependences with gem, but not execute bundler.

futaz commented 7 years ago

nokogiri is defined in Redmine's Gemfile with version and in backlog's Gemfile without version. If you comment out the nokogiri dependency in backlog's Gemfile, the bundle command will execute successfully.

You may face with a similar problem with capybara gem, but in that case, you need to comment out it from Redmine's Gemfile, because backlog's one's defining it with a more specific version.