Project

General

Profile

v1.4.4 on fc17

Added by Marlon Pascoal over 11 years ago

Hello guys,

First, I'm installing v1.4.4 'cause a want some plugins.

I've already installed v1.4.4 on fc17, but this time there is something going wrong.

I've already tried to install it on mysql and postgres, but I get 'Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (cannot load such file -- mysql2/mysql2)' when i run RAILS_ENV=production rake db:migrate.

I'd really appreciate your help. I'm stuck.

Regards,

Marlon Pascoal

--

*** LOCAL GEMS ***

actionmailer (2.3.14)
actionpack (2.3.14)
activerecord (2.3.14)
activerecord-mysql2-adapter (0.0.3)
activerecord-postgresql-adapter (0.0.1)
activeresource (2.3.14)
activesupport (2.3.14)
bigdecimal (1.1.0)
bundler (1.2.1)
coderay (1.0.8)
edavis10-object_daddy (0.4.3)
i18n (0.4.2)
io-console (0.3)
json (1.6.5)
metaclass (0.0.1)
minitest (4.1.0)
mocha (0.12.3)
mysql (2.8.1)
mysql2 (0.3.11, 0.2.18)
net-ldap (0.3.1)
pg (0.14.1)
postgres-pr (0.6.3)
rack (1.1.3)
rails (2.3.14)
rake (0.9.2.2)
rdoc (3.12)
rmagick (2.13.1)
ruby-openid (2.1.8)
ruby-pg (0.8.0)
shoulda (2.10.3)
test-unit (2.5.2)
tzinfo (0.3.33)
[root@srvad ~]# yum list installed | grep ruby
ruby.x86_64                      1.9.3.286-18.fc17  @updates-testing            
ruby-RMagick.x86_64              2.13.1-9.fc17.1    @fedora                     
ruby-devel.x86_64                1.9.3.286-18.fc17  @updates-testing            
ruby-irb.noarch                  1.9.3.286-18.fc17  @updates-testing            
ruby-libs.x86_64                 1.9.3.286-18.fc17  @updates-testing            
ruby-mysql.x86_64                2.8.2-6.fc17       @fedora                     
rubygem-bigdecimal.x86_64        1.1.0-18.fc17      @updates-testing            
rubygem-io-console.x86_64        0.3-18.fc17        @updates-testing            
rubygem-json.x86_64              1.6.5-1.fc17       @fedora                     
rubygem-rdoc.noarch              3.12-4.fc17        @updates                    
rubygems.noarch                  1.8.24-1.fc17      @fedora
# Default setup is given for MySQL with ruby1.8. If you're running Redmine
# with MySQL and ruby1.9, replace the adapter name with `mysql2`.
# Examples for PostgreSQL and SQLite3 can be found at the end.

production:
  adapter: mysql2
  database: redmine
  host: localhost
  username: redmine
  password: redminepass
  encoding: utf8
[root@srvad redmine-1.4]# RAILS_ENV=production rake db:migrate --trace
Please install RDoc 2.4.2+ to generate documentation.
** 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/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_specification.rb:76:in `rescue in rescue in establish_connection'
/usr/local/share/gems/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_specification.rb:73:in `rescue in establish_connection'
/usr/local/share/gems/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_specification.rb:68:in `establish_connection'
/usr/local/share/gems/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_specification.rb:60:in `establish_connection'
/usr/local/share/gems/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_specification.rb:55:in `establish_connection'
/usr/local/share/gems/gems/rails-2.3.14/lib/initializer.rb:438:in `initialize_database'
/usr/local/share/gems/gems/rails-2.3.14/lib/initializer.rb:141:in `process'
/usr/local/share/gems/gems/rails-2.3.14/lib/initializer.rb:113:in `run'
/var/www/redmine-1.4/config/environment.rb:21:in `<top (required)>'
/usr/local/share/gems/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `require'
/usr/local/share/gems/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `block in require'
/usr/local/share/gems/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:547:in `new_constants_in'
/usr/local/share/gems/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `require'
/usr/local/share/gems/gems/rails-2.3.14/lib/tasks/misc.rake:4:in `block in <top (required)>'
/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
[root@srvad redmine-1.4]# bundle install
Using rake (0.9.2.2) 
Using activesupport (2.3.14) 
Using rack (1.1.3) 
Using actionpack (2.3.14) 
Using actionmailer (2.3.14) 
Using activerecord (2.3.14) 
Using activeresource (2.3.14) 
Using coderay (1.0.8) 
Using edavis10-object_daddy (0.4.3) 
Using i18n (0.4.2) 
Using metaclass (0.0.1) 
Using mocha (0.12.3) 
Using mysql2 (0.2.18) 
Using net-ldap (0.3.1) 
Using rails (2.3.14) 
Using rmagick (2.13.1) 
Using ruby-openid (2.1.8) 
Using shoulda (2.10.3) 
Using test-unit (2.5.2) 
Using tzinfo (0.3.33) 
Using bundler (1.2.1) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

Replies (4)

RE: v1.4.4 on fc17 - Added by John R. Bussiculo over 11 years ago

I am having the same issue. There are a few pages I found when doing google searches but none of them seemed to resolve the problem. If I come up with anything new I will post it back here.

RE: v1.4.4 on fc17 - Added by Marlon Pascoal over 11 years ago

Hello guys, I've already solved the problem.

The problems were that when I first installed the bundler I installed by the rubygem e.g. 'gem install bundler'.

The thing is that Fedora does not allow privilegies enough and somewhy bundler says that installs mysql2 driver but something stay missing.

What I did to resolve the problem was remove bundler installed by gem and install the one from yum packages. If I well remember 'yum install rubygem-bundler'. Then use the bundler install. So, everything started working fine!

[]s

RE: v1.4.4 on fc17 - Added by John R. Bussiculo over 11 years ago

I just installed a fresh copy of Fedora 17. Installed bundler via yum as you suggested and it still failed on mysql2... :-(

RE: v1.4.4 on fc17 - Added by Marlon Pascoal over 11 years ago

Have you installed the mysql2-adapter?

gem install activerecord-mysql2-adapter

[]s

    (1-4/4)