再用上面的官方指导文档来配置redmine 时下面报错:
sudo bundle install --without development test postgresql sqlite
[!] 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: redcarpet (~> 3.4.0) and redcarpet (~> 3.3.2). Bundler cannot continue.
# from /opt/redmine/redmine-4.0.7/plugins/redmine_git_hosting/Gemfile:9
# gem 'gitlab-grack', git: 'https://github.com/jbox-web/grack.git', require: 'grack', branch: 'fix_rails4'
> gem 'redcarpet', '~> 3.3.2'
. Bundler cannot continue.
# from /opt/redmine/redmine-4.0.7/Gemfile:102
# Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
> eval_gemfile file
# end
解决方法:
sudo vim opt/redmine/redmine-4.0.7/plugins/redmine_git_hosting/Gemfile +9
把 gem 'redcarpet', '~> 3.3.2' 改成 gem 'redcarpet', '~> 3.4.0'