Ubuntu redmine There was an error parsing `Gemfile`: You cannot specify the same gem twice

https://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_30x_on_Ubuntu_1404_with_Apache2_Phusion_Passenger_MySQL_Subversion_and_Git_(Gitolite)

再用上面的官方指导文档来配置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'     

                                                                                                                              

猜你喜欢

转载自blog.csdn.net/yang_quan_yang/article/details/107668773