简体   繁体   中英

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

根据您的database.yml adapter行,尝试使用gem install mysqlgem install mysql2

possibly error in your database connection, verify your mysql is running and if running verify your sql connection setting in database.yml

I too faced this problem, but changing database.yml connection worked for me

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM