Project

General

Profile

Rake Aborted to installation

Added by Dark Sark about 10 years ago

Hello everyone

I have a problem.
When i want do this :
set RAILS_ENV=production
rake db:migrate

System write :

rake aborted!
126: le module spécifié est introuvable (in english : specified module could not be found)
 - C:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql-2.8.1-x86-mingw32/lib/1.9/mysql_api.so
c:/redmine/redmine/config/application.rb:7:in '<top <required>>'
c:/redmine/redmine/Rakefile:5:in 'require'
c:/redmine/redmine/Rakefile:5:in '<top <required>>'

I try this : 'bundle exec rake db:migrate' but it's the same.

My database config :

production:
  adapter: mysql
  database: redmine
  host: localhost
  username: redmine
  password: redmine
  encoding: utf8

development:
  adapter: mysql
  database: redmine_development
  host: localhost
  username: redmine
  password: redmine
  encoding: utf8

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  adapter: mysql
  database: redmine_test
  host: localhost
  username: redmine
  password: redmine
  encoding: utf8

Can you help me ?

PS : I have an other problem, i can't install gem mysql2 (see sreenshot)

EDIT : my config :
MySQL 5.6.17
ruby 1.9.3
latest redmine
windows 7

Sans titre.png (18.3 KB) Sans titre.png Screenshoot problem gem install mysql2

Replies (2)

RE: Rake Aborted to installation - Added by Dark Sark about 10 years ago

For mysql, i try this method "D:\>gem install mysql2 -- --with-mysql-dir=C:\mysql-connector-c-6.1.2-win32"
But it does not work (see screenshoot)

Sans titre.png (58.7 KB) Sans titre.png Screenshoot problem gem install mysql2

RE: Rake Aborted to installation - Added by Dark Sark about 10 years ago

I solved this problem with using postgresSQL ;)

    (1-2/2)