Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (mysql2 is not part of the bundle. Add it to Gemfile.)
Added by alaca kala almost 12 years ago
Hi
I am following wiki to upgrade to eh latest (from 2.1) and I am getting the error in the topic.
I love redmine but I am a stupid noob when it comes to ruby. I just follow the tutorials to install this stuff. I have to admit though anytime I have to install something ruby I endup wasting days over it, maybe because I am just trying to use Ruby on Debian.
Anyway here is my trace. I would really appreciate if someone can hjelp me out with this. I have
/usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/rubygems_integration.rb:147:in `gem' /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.12/lib/active_record/connection_adapters/mysql2_adapter.rb:3 /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require' /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require' /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency' /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require' /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_specification.rb:50:in `resolve_hash_connection' /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:in `resolve_string_connection' /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_specification.rb:25:in `spec' /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in `establish_connection' /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.12/lib/active_record/railtie.rb:82 /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval' /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook' /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:43:in `run_load_hooks' /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:42:in `each' /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks' /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.12/lib/active_record/base.rb:720 /Yedeksiz/temp/redmine_NEW/lib/plugins/acts_as_activity_provider/init.rb:2 /Yedeksiz/temp/redmine_NEW/config/initializers/00-core_plugins.rb:12 /Yedeksiz/temp/redmine_NEW/config/initializers/00-core_plugins.rb:2:in `each' /Yedeksiz/temp/redmine_NEW/config/initializers/00-core_plugins.rb:2 /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:245:in `load' /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:245:in `load' /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency' /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:245:in `load' /usr/lib/ruby/gems/1.8/gems/railties-3.2.12/lib/rails/engine.rb:588 /usr/lib/ruby/gems/1.8/gems/railties-3.2.12/lib/rails/engine.rb:587:in `each' /usr/lib/ruby/gems/1.8/gems/railties-3.2.12/lib/rails/engine.rb:587 /usr/lib/ruby/gems/1.8/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `instance_exec' /usr/lib/ruby/gems/1.8/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `run' /usr/lib/ruby/gems/1.8/gems/railties-3.2.12/lib/rails/initializable.rb:55:in `run_initializers' /usr/lib/ruby/gems/1.8/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `each' /usr/lib/ruby/gems/1.8/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `run_initializers' /usr/lib/ruby/gems/1.8/gems/railties-3.2.12/lib/rails/application.rb:136:in `initialize!' /usr/lib/ruby/gems/1.8/gems/railties-3.2.12/lib/rails/railtie/configurable.rb:30:in `send' /usr/lib/ruby/gems/1.8/gems/railties-3.2.12/lib/rails/railtie/configurable.rb:30:in `method_missing' /Yedeksiz/temp/redmine_NEW/config/environment.rb:14 /usr/lib/ruby/gems/1.8/gems/railties-3.2.12/lib/rails/application.rb:103:in `require' /usr/lib/ruby/gems/1.8/gems/railties-3.2.12/lib/rails/application.rb:103:in `require_environment!' /usr/lib/ruby/gems/1.8/gems/railties-3.2.12/lib/rails/application.rb:297:in `initialize_tasks' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:228:in `call' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:228:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:223:in `each' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:223:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:166:in `invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in `invoke_with_call_chain' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:187:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in `each' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:185:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:165:in `invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in `invoke_with_call_chain' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:152:in `invoke' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:143:in `invoke_task' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:101:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:101:in `each' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:101:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:110:in `run_with_threads' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:95:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:73:in `run' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:160:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:70:in `run' /usr/lib/ruby/gems/1.8/gems/rake-10.0.3/bin/rake:33 /usr/bin/rake:23:in `load' /usr/bin/rake:23 Tasks: TOP => db:migrate => environment and gemlock Gemfile.lock Line 1 Col 0 2957 bytes 44% GEM remote: http://rubygems.org/ remote: https://rubygems.org/ specs: actionmailer (3.2.12) actionpack (= 3.2.12) mail (~> 2.4.4) actionpack (3.2.12) activemodel (= 3.2.12) activesupport (= 3.2.12) builder (~> 3.0.0) erubis (~> 2.7.0) journey (~> 1.0.4) rack (~> 1.4.5) rack-cache (~> 1.2) rack-test (~> 0.6.1) sprockets (~> 2.2.1) activemodel (3.2.12) activesupport (= 3.2.12) builder (~> 3.0.0) activerecord (3.2.12) activemodel (= 3.2.12) activesupport (= 3.2.12) arel (~> 3.0.2) tzinfo (~> 0.3.29) activeresource (3.2.12) activemodel (= 3.2.12) activesupport (= 3.2.12) activesupport (3.2.12) i18n (~> 0.6) multi_json (~> 1.0) arel (3.0.2) builder (3.0.0) coderay (1.0.9) erubis (2.7.0) fastercsv (1.5.5) hike (1.2.1) i18n (0.6.4) icalendar (1.1.6) journey (1.0.4) jquery-rails (2.0.3) railties (>= 3.1.0, < 5.0) thor (~> 0.14) json (1.7.7) libxml-ruby (2.6.0) mail (2.4.4) i18n (>= 0.4.0) mime-types (~> 1.16) treetop (~> 1.4.8) metaclass (0.0.1) mime-types (1.21) mocha (0.12.3) metaclass (~> 0.0.1) multi_json (1.6.1) mysql (2.8.1)
Replies (10)
RE: Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (mysql2 is not part of the bundle. Add it to Gemfile.) - Added by Jan Niggemann (redmine.org team member) almost 12 years ago
Type gem install activerecord-mysql2-adapter
at your prompt.
What happens? Also read my guide for installing redmine on debian...
RE: Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (mysql2 is not part of the bundle. Add it to Gemfile.) - Added by alaca kala almost 12 years ago
Hi
Jan , please bear in mind that my current redmine2 perfectly runs with passenger under Debian.
Here is what I have with your suggestion. It does install but fails with database upgrade
Successfully installed activerecord-mysql2-adapter-0.0.3
1 gem installed
Installing ri documentation for activerecord-mysql2-adapter-0.0.3...
Building YARD (yri) index for activerecord-mysql2-adapter-0.0.3...
Installing RDoc documentation for activerecord-mysql2-adapter-0.0.3...
- rake db:migrate RAILS_ENV=production
rake aborted!
Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (mysql2 is not part of the bundle. Add it to Gemfile.)
/redmine_NEW/lib/plugins/acts_as_activity_provider/init.rb:2
/redmine_NEW/config/initializers/00-core_plugins.rb:12
/redmine_NEW/config/initializers/00-core_plugins.rb:2:in `each'
/redmine_NEW/config/initializers/00-core_plugins.rb:2
/redmine_NEW/config/environment.rb:14
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
RE: Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (mysql2 is not part of the bundle. Add it to Gemfile.) - Added by Jan Niggemann (redmine.org team member) almost 12 years ago
alaca kala wrote:
Jan , please bear in mind that my current redmine2 perfectly runs with passenger under Debian.
Oh, well, yes. Then you must already use the mysql2 adapter... you're right.
Here is what I have with your suggestion. It does install
A bit strange, since it's already installed, isn't it?
What does gem list|grep mysql
return?
but fails with database upgrade
Please try grep -i mysql Gemfile
on the new redmine's Gemfile.
What's it say?
RE: Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (mysql2 is not part of the bundle. Add it to Gemfile.) - Added by alaca kala almost 12 years ago
Jan
here is the queries
gem list|grep mysql activerecord-mysql2-adapter (0.0.3) mysql (2.9.1, 2.8.1) mysql2 (0.3.11, 0.2.7) grep -i mysql Gemfile group :mysql do gem "mysql", "~> 2.8.1" group :mysql do gem "mysql2", "~> 0.3.11" group :mysql do gem "activerecord-jdbcmysql-adapter"
RE: Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (mysql2 is not part of the bundle. Add it to Gemfile.) - Added by Jan Niggemann (redmine.org team member) almost 12 years ago
Did you run bundle install
?
RE: Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (mysql2 is not part of the bundle. Add it to Gemfile.) - Added by alaca kala almost 12 years ago
Yes I actually did.
RE: Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (mysql2 is not part of the bundle. Add it to Gemfile.) - Added by Oliver Goebel over 11 years ago
Hey guys,
did you eventually find a solution to this?
I'm stuck at the same point trying to install on Ubuntu 12.04.
Any help appreciated.
Thanks
RE: Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (mysql2 is not part of the bundle. Add it to Gemfile.) - Added by alaca kala over 11 years ago
Oliver Goebel wrote:
Hey guys,
did you eventually find a solution to this?I'm stuck at the same point trying to install on Ubuntu 12.04.
Any help appreciated.
Thanks
Hi
Unfortunately I could not find a solution and I gave up on it. Redmine had been the worst app that require massive dependencies and weird way of installing at least on Debian. It is almost undoable, everytime I tried it since version 1. So I just leave as it is once I get it working after weeks of struggle. It keeps coming up with new gem installs, version dependencies etc. Not sure. I wish someone who knows bundle this stuff for Debian/Ubuntu properly.
RE: Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (mysql2 is not part of the bundle. Add it to Gemfile.) - Added by Jean-Baptiste Barth over 11 years ago
I always had that kind of problems with the mysql adapters and Debian, and I agree it's a shame. If you have some more time to lose I'm available on IRC (#redmine @ freenode), I can help you about that issue.
RE: Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (mysql2 is not part of the bundle. Add it to Gemfile.) - Added by alaca kala over 11 years ago
Jean-Baptiste Barth wrote:
I always had that kind of problems with the mysql adapters and Debian, and I agree it's a shame. If you have some more time to lose I'm available on IRC (#redmine @ freenode), I can help you about that issue.
Hi
I would appreciate if you could help me out. If you tell me your nick in the channel I can contact you.
thanks