I am installing gitlab. when I installed GitLab shell, I got the errors:rake about....But I still can not figure it out after trying many ways.
After I executed the command "sudo -u git -H bundle exec rake gitlab:shell:install[v2.6.5] REDIS_URL=unix:/var/run/redis/redis.sock RAILS_ENV=production"
the error is : /usr/local/lib/ruby/gems/2.1.0/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:20: warning: already initialized constant Rouge::Lexers::Shell::KEYWORDS
/usr/local/lib/ruby/gems/2.1.0/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:20: warning: previous definition of KEYWORDS was here
/usr/local/lib/ruby/gems/2.1.0/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:25: warning: already initialized constant Rouge::Lexers::Shell::BUILTINS
/usr/local/lib/ruby/gems/2.1.0/gems/rouge-1.9.1/lib/rouge/lexers/shell.rb:25: warning: previous definition of BUILTINS was here
rake aborted!
Gem::LoadError: Specified 'mysql2' for database adapter, but the gem is not loaded. Add gem 'mysql2'
to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
/home/git/gitlab/config/environment.rb:5:in <top (required)>' Gem::LoadError: mysql2 is not part of the bundle. Add it to Gemfile. /home/git/gitlab/config/environment.rb:5:in
<top (required)>'
Tasks: TOP => gitlab:shell:install => environment (See full trace by running task with --trace)
But when I run "gem list", the result shows that I have installed shwon below, mysql2 (0.4.1)
My OS is Ubuntu 14.04 LTS and ruby is 2.1.6.