Search code examples
mysqlruby-on-railsrubyredmine

Unable to Install Redmine on Win 2008R2 .. gem install activerecord-mysql-adapter not working


While trying to install Redmine on Windows Server 2008 R2, I struck into following error we no solutions found...

It is asking to install something, and when try to install it says it don't find it. It suggested activerecord-mysql2-adapter, but even that is not working...

I'm now starting to believe that ROR sucks....

C:\Ruby\Apps\Redmine>rake db:migrate
rake aborted!
Please install the mysql adapter: `gem install activerecord-mysql-adapter` (193:
 %1 is not a valid Win32 application.   - C:/Ruby187/lib/ruby/gems/1.8/gems/mysq
l-2.8.1-x86-mingw32/lib/1.8/mysql_api.so)

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

C:\Ruby\Apps\Redmine>gem install activerecord-mysql-adapter
ERROR:  Could not find a valid gem 'activerecord-mysql-adapter' (>= 0) in any re
pository
ERROR:  Possible alternatives: activerecord-mysql2-adapter, activerecord-jdbcmys
ql-adapter, activerecord-jdbc-adapter, activerecord-ruby_mysql-adapter, activere
cord-fb-adapter

Solution

  • Depending on the adapter line of your database.yml try gem install mysql or gem install mysql2.