Content
Error creating databases
Added by JD Toony over 10 years ago
I’m trying to install this on OS X Server. I’m following the instructions at https://www.openproject.org/projects/openproject/wiki/Installation_MacOS
When I try to generate the databases with ‘bundle exec rake db:create:all’ , I’m getting a rake aborted! error. I did what it said and installed the mysql2 adapter gem, but it still gives the same error. I checked, and the mysql2.bundle file is where it should be. What am I doing wrong?
JD-
server:config jeffreytoony$ gem install activerecord-mysql2-adapter
Successfully installed activerecord-mysql2-adapter-0.0.3
Parsing documentation for activerecord-mysql2-adapter-0.0.3
Done installing documentation for activerecord-mysql2-adapter after 0 seconds
1 gem installed
server:config jeffreytoony$ bundle exec rake db:create:all
(in /Users/jeffreytoony/openproject)
require ‘rails/all’… 0.340s
Bundler.require… 1.600s
rake aborted!
Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (dlopen(/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/extensions/x86_64-darwin-13/2.1.0-static/mysql2-0.3.11/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib
Referenced from: /Users/jeffreytoony/.rvm/gems/ruby-2.1.0/extensions/x86_64-darwin-13/2.1.0-static/mysql2-0.3.11/mysql2/mysql2.bundle
Reason: image not found - /Users/jeffreytoony/.rvm/gems/ruby-2.1.0/extensions/x86_64-darwin-13/2.1.0-static/mysql2-0.3.11/mysql2/mysql2.bundle)
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `block in require’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:236:in `load_dependency’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/mysql2-0.3.11/lib/mysql2.rb:9:in `<top (required)>’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `block in require’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:236:in `load_dependency’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/mysql2_adapter.rb:4:in `<top (required)>’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `block in require’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:236:in `load_dependency’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_specification.rb:50:in `resolve_hash_connection’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_specification.rb:29:in `spec’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in `establish_connection’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/railties/databases.rake:101:in `create_database’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/railties/databases.rake:52:in `block (5 levels) in <top (required)>’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/railties/databases.rake:184:in `local_database?’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/railties/databases.rake:52:in `block (4 levels) in <top (required)>’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/railties/databases.rake:38:in `each_value’
/Users/jeffreytoony/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.18/lib/active_record/railties/databases.rake:38:in `block (3 levels) in <top (required)>’
Tasks: TOP => db:create:all
(See full trace by running task with —trace)