Content
I need Install OpenProject 3.0 in Fedora 20
Added by Julián Tete almost 11 years ago
Hello Friends,
I’m from Colombia, forgive my poor English.
Can you help me ?
I followed this manual:
But I can’t install OpenProject 3.0 in Fedora 20. I get this message in http://localhost/openproject/ (I installed activerecord-mysql2-adapter with no success):
Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (cannot load such file — mysql2/mysql2) (LoadError)
/usr/local/share/gems/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require’
/usr/local/share/gems/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `block in require’
/usr/local/share/gems/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:236:in `load_dependency’
/usr/local/share/gems/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require’
/usr/local/share/gems/gems/mysql2-0.3.11/lib/mysql2.rb:9:in `<top (required)>’
/usr/local/share/gems/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require’
/usr/local/share/gems/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `block in require’
/usr/local/share/gems/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:236:in `load_dependency’
/usr/local/share/gems/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require’
/usr/local/share/gems/gems/activerecord-3.2.16/lib/active_record/connection_adapters/mysql2_adapter.rb:4:in `<top (required)>’
/usr/local/share/gems/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require’
/usr/local/share/gems/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `block in require’
/usr/local/share/gems/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:236:in `load_dependency’
/usr/local/share/gems/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require’
/usr/local/share/gems/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_specification.rb:50:in `resolve_hash_connection’
/usr/local/share/gems/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:in `resolve_string_connection’
/usr/local/share/gems/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_specification.rb:25:in `spec’
/usr/local/share/gems/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in `establish_connection’
/usr/local/share/gems/gems/activerecord-3.2.16/lib/active_record/railtie.rb:88:in `block (2 levels) in class:Railtie’
/usr/local/share/gems/gems/activesupport-3.2.16/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval’
/usr/local/share/gems/gems/activesupport-3.2.16/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook’
/usr/local/share/gems/gems/activesupport-3.2.16/lib/active_support/lazy_load_hooks.rb:26:in `block in on_load’
/usr/local/share/gems/gems/activesupport-3.2.16/lib/active_support/lazy_load_hooks.rb:25:in `each’
/usr/local/share/gems/gems/activesupport-3.2.16/lib/active_support/lazy_load_hooks.rb:25:in `on_load’
/usr/local/share/gems/gems/activerecord-3.2.16/lib/active_record/railtie.rb:80:in `block in class:Railtie’
/usr/local/share/gems/gems/railties-3.2.16/lib/rails/initializable.rb:30:in `instance_exec’
/usr/local/share/gems/gems/railties-3.2.16/lib/rails/initializable.rb:30:in `run’
/usr/local/share/gems/gems/railties-3.2.16/lib/rails/initializable.rb:55:in `block in run_initializers’
/usr/local/share/gems/gems/railties-3.2.16/lib/rails/initializable.rb:54:in `each’
/usr/local/share/gems/gems/railties-3.2.16/lib/rails/initializable.rb:54:in `run_initializers’
/usr/local/share/gems/gems/railties-3.2.16/lib/rails/application.rb:136:in `initialize!’
/usr/local/share/gems/gems/railties-3.2.16/lib/rails/railtie/configurable.rb:30:in `method_missing’
/var/www/html/openproject/config/environment.rb:34:in `block in <top (required)>’
/var/www/html/openproject/config/application.rb:42:in `block in bench’
/usr/share/ruby/benchmark.rb:281:in `measure’
/var/www/html/openproject/config/application.rb:41:in `bench’
/var/www/html/openproject/config/environment.rb:32:in `<top (required)>’
config.ru:31:in `require’
config.ru:31:in `block in
’
/usr/local/share/gems/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval’
/usr/local/share/gems/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize’
config.ru:1:in `new’
config.ru:1:in `
’
/usr/local/share/gems/gems/passenger-4.0.37/helper-scripts/rack-preloader.rb:112:in `eval’
/usr/local/share/gems/gems/passenger-4.0.37/helper-scripts/rack-preloader.rb:112:in `preload_app’
/usr/local/share/gems/gems/passenger-4.0.37/helper-scripts/rack-preloader.rb:158:in `module:App’
/usr/local/share/gems/gems/passenger-4.0.37/helper-scripts/rack-preloader.rb:29:in `module:PhusionPassenger’
/usr/local/share/gems/gems/passenger-4.0.37/helper-scripts/rack-preloader.rb:28:in `
’
Replies (6)
Hi Julián,
can you plz show me the content of your ‘config/database.yml’ (remove your password and database).
Best
Ratzi
Hi Ratzi, Thanks for the help!! :)
there’s my data:
#— copyright
#
#
#
#
#
#
#
production:
adapter: mysql2
database: openproject
host: localhost
username: openproject
password: ****
encoding: utf8
development:
adapter: mysql2
database: openproject_development
host: localhost
username: openproject
password: ****
encoding: utf8
test:
adapter: mysql2
database: openproject_test
host: localhost
username: openproject
password: *****
encoding: utf8
#test_pgsql:
#adapter: postgresql
#encoding: unicode
#database: openproject_test
#pool: 5
#username: openproject
#password:
#test_sqlite3:
#adapter: sqlite3
#database: db/test.sqlite3
Hi Julián,
it should not be necessary to install ‘activerecord-mysql2-adapter gem’. What’s happen if you try to install the mysql2 gem manually?
Best
Ratzi
Nothing happens :(, the error’s log it’s the same.
But the mysql2 gem was successfully installed?
I get this:
gem install mysql2
Building native extensions. This could take a while…
Successfully installed mysql2-0.3.15
Parsing documentation for mysql2-0.3.15
Done installing documentation for mysql2 after 0 seconds
1 gem installed
Reboot my machine and the same history :P