To install redmine 3.2.0 on Ubuntu 14.04, mainly follow the tutorial:
HowTo Install Redmine 3.0.x on Ubuntu 14.04 with Apache2, Phusion Passenger, MySQL, Subversion and Git (Gitolite)
During the install process, some problems are encountered. The rest page will explain these problems and the related solutions.
1) Set the source of RubyGems and bundle gem
After install the ruby gem, set rubygems source.
$ rvm install 2.1.4
$ gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/
$ gem sources -l
*** CURRENT SOURCES ***https://ruby.taobao.org
After install the bundle, set bundle gem mirror source.
$ gem install bundle
$ bundle config mirror.https://rubygems.org https://ruby.taobao.org
2) Miss gem 'rbpdf-font'
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'
Solution
redmine@sonicwallFWServer:~/redmine$ gem install rbpdf-font
redmine@sonicwallFWServer:~/redmine$ rm Gemfile.lock
redmine@sonicwallFWServer:~/redmine$ bundle install --without development test postgresql sqlite
3) You cannot specify the same gem twice with different version requirements
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.
Solution
comment the line: /opt/redmine/redmine-3.2.0/plugins/redmine_git_hosting/Gemfile:9