Project

General

Profile

Please install the mysql2 adapter

Added by walid walid almost 12 years ago

Hello
It's have been now 5 days that I'm trying to install redmine on Fedora 17,
but I'm stuck with this error , I've looked for all the solution , but it seems no one has worked for me .
this is the trace of the error :
[root@localhost redmine-2.0]# RAILS_ENV=production rake db:migrate --trace
  • Invoke db:migrate (first_time)
  • Invoke environment (first_time)
  • Execute environment
    rake aborted!
    Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (cannot load such file -- mysql2/mysql2)
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in require'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
    /usr/local/share/gems/gems/mysql2-0.2.18/lib/mysql2.rb:9:in `<top (required)>'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in require'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
    /usr/local/share/gems/gems/mysql2-0.2.18/lib/active_record/connection_adapters/mysql2_adapter.rb:3:in `<top (required)>'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in require'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
    /usr/local/share/gems/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:48:in `resolve_hash_connection'
    /usr/local/share/gems/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:39:in `resolve_string_connection'
    /usr/local/share/gems/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:23:in `spec'
    /usr/local/share/gems/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:127:in `establish_connection'
    /usr/local/share/gems/gems/activerecord-3.2.6/lib/active_record/railtie.rb:82:in `block (2 levels) in <class:Railtie>'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:42:in `each'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
    /usr/local/share/gems/gems/activerecord-3.2.6/lib/active_record/base.rb:721:in `<top (required)>'
    /home/walid/FichierGest/redmine-2.0/lib/plugins/acts_as_activity_provider/init.rb:2:in `block in <top (required)>'
    /home/walid/FichierGest/redmine-2.0/config/initializers/00-core_plugins.rb:12:in `eval'
    /home/walid/FichierGest/redmine-2.0/config/initializers/00-core_plugins.rb:12:in `block in <top (required)>'
    /home/walid/FichierGest/redmine-2.0/config/initializers/00-core_plugins.rb:2:in `each'
    /home/walid/FichierGest/redmine-2.0/config/initializers/00-core_plugins.rb:2:in `<top (required)>'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in `load'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in `block in load'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'
    /usr/local/share/gems/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in `load'
    /usr/local/share/gems/gems/railties-3.2.6/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
    /usr/local/share/gems/gems/railties-3.2.6/lib/rails/engine.rb:587:in `each'
    /usr/local/share/gems/gems/railties-3.2.6/lib/rails/engine.rb:587:in `block in <class:Engine>'
    /usr/local/share/gems/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `instance_exec'
    /usr/local/share/gems/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `run'
    /usr/local/share/gems/gems/railties-3.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
    /usr/local/share/gems/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `each'
    /usr/local/share/gems/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers'
    /usr/local/share/gems/gems/railties-3.2.6/lib/rails/application.rb:136:in `initialize!'
    /usr/local/share/gems/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing'
    /home/walid/FichierGest/redmine-2.0/config/environment.rb:14:in `<top (required)>'
    /usr/local/share/gems/gems/railties-3.2.6/lib/rails/application.rb:103:in `require'
    /usr/local/share/gems/gems/railties-3.2.6/lib/rails/application.rb:103:in `require_environment!'
    /usr/local/share/gems/gems/railties-3.2.6/lib/rails/application.rb:292:in `block (2 levels) in initialize_tasks'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
    /usr/share/ruby/monitor.rb:211:in `mon_synchronize'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
    /usr/share/ruby/monitor.rb:211:in `mon_synchronize'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
    /usr/local/share/gems/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
    /usr/local/share/gems/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
    /usr/local/bin/rake:23:in `load'
    /usr/local/bin/rake:23:in `<main>'
    Tasks: TOP => db:migrate => environment

and here is the output when I run bundle install :++
[root@localhost redmine-2.0]# bundle install
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.3.6)
Using activesupport (3.2.6)
Using builder (3.0.0)
Using activemodel (3.2.6)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.6)
Using mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.6)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.6)
Using activeresource (3.2.6)
Using coderay (1.0.7)
Using json (1.7.3)
Using mysql2 (0.2.18)
Using net-ldap (0.3.1)
Using pg (0.14.0)
Using bundler (1.1.4)
Using rack-ssl (1.3.2)
Using rdoc (3.12)
Using thor (0.15.4)
Using railties (3.2.6)
Using rails (3.2.6)
Using prototype-rails (3.2.1)
Using ruby-openid (2.1.8)
Using rack-openid (1.3.1)
Using rmagick (2.13.1)
Using sqlite3 (1.3.6)

and here is the gem list command :
[root@localhost redmine-2.0]# gem list

  • LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.2.6, 3.0.11, 2.3.14)
actionpack (3.2.6, 3.0.11, 2.3.14)
activemodel (3.2.6, 3.0.11)
activerecord (3.2.6, 3.0.11, 2.3.14)
activerecord-jdbc-adapter (1.2.2)
activerecord-jdbcmysql-adapter (1.2.2)
activerecord-jdbcsqlite3-adapter (1.2.2)
activeresource (3.2.6, 3.0.11, 2.3.14)
activesupport (3.2.6, 3.0.11, 2.3.14)
arel (3.0.2, 2.0.9)
atk (1.1.3)
bigdecimal (1.1.0)
builder (3.0.0, 2.1.2)
bundle (0.0.1)
bundler (1.1.4, 1.0.21)
cairo (1.12.2)
chunky_png (1.2.0)
coderay (1.0.7)
diff-lcs (1.1.3, 1.1.2)
erubis (2.7.0, 2.6.6)
gdk_pixbuf2 (1.1.3)
gettext (2.2.1)
glib2 (1.1.3)
gtk2 (1.1.3)
hike (1.2.1)
i18n (0.6.0, 0.5.0, 0.4.2)
io-console (0.3)
jdbc-mysql (5.1.13)
jdbc-sqlite3 (3.7.2)
journey (1.0.4)
json (1.7.3, 1.6.5)
locale (2.0.5)
mail (2.4.4)
mime-types (1.19, 1.16)
multi_json (1.3.6)
mysql2 (0.3.11, 0.2.18)
net-ldap (0.3.1)
pango (1.1.3)
pg (0.14.0)
polyglot (0.3.3, 0.3.1)
prototype-rails (3.2.1)
rack (1.4.1, 1.4.0, 1.1.3)
rack-cache (1.2)
rack-mount (0.7.1)
rack-openid (1.3.1)
rack-ssl (1.3.2)
rack-test (0.6.1, 0.6.0)
rails (3.2.6, 3.0.11, 2.3.14)
railties (3.2.6, 3.0.11)
rake (0.9.2.2)
rdoc (3.12, 2.4.2)
regin (0.3.8)
rmagick (2.13.1)
ruby-openid (2.2.0, 2.1.8)
ruby2ruby (1.3.1, 1.2.4)
ruby_parser (2.3.1, 2.0.4)
sexp_processor (4.0.1, 3.0.4)
sprockets (2.4.5, 2.1.3)
sqlite3 (1.3.6)
sqlite3-ruby (1.3.3)
text-format (1.0.0)
thor (0.15.4, 0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.33, 0.3.30)
yard (0.8.2.1)

and these are the versions of the needed tools :
[root@localhost redmine-2.0]# rails --version
Rails 3.2.6
[root@localhost redmine-2.0]# ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
[root@localhost redmine-2.0]# gem --version
1.8.24
[root@localhost redmine-2.0]# mysql --version
mysql Ver 14.14 Distrib 5.5.25a, for Linux (x86_64) using readline 5.1

please I need your help to solve this issue .