To install redmine 3.2.0 on Ubuntu 14.04, mainly follow the tutorial:git
During the install process, some problems are encountered. The rest page will explain these problems and the related solutions.web
After install the ruby gem, set rubygems source.sql
$ rvm install 2.1.4
ruby$ gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/
$ gem sources -l
*** CURRENT SOURCES *** gitlabhttps://ruby.taobao.orgpost
After install the bundle, set bundle gem mirror source. ui
$ gem install bundle rest
$ bundle config mirror.https://rubygems.org https://ruby.taobao.orgpostgresql
When run 「bundle install」 the first time,
redmine@sonicwallFWServer:~/redmine$ bundle install --without development test postgresql sqlite
Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES section: 'rbpdf-font'
redmine@sonicwallFWServer:~/redmine$ gem install rbpdf-font
redmine@sonicwallFWServer:~/redmine$ rm Gemfile.lock
redmine@sonicwallFWServer:~/redmine$ bundle install --without development test postgresql sqlite
When run 「bundle install」 the second time,
[!] There was an error parsing `Gemfile`: You cannot specify the same gem twice with different version requirements.
You specified: redcarpet (~> 3.3.2) and redcarpet (~> 3.1.2). Bundler cannot continue.# from /opt/redmine/redmine-3.2.0/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.1.2'
#
# -------------------------------------------
. Bundler cannot continue.
comment the line: /opt/redmine/redmine-3.2.0/plugins/redmine_git_hosting/Gemfile:9