无法在Win 2008R2上安装Redmine .. gem install activerecord-mysql-adapter无法正常工作

时间:2012-10-07 09:57:37

标签: mysql ruby-on-rails ruby redmine

尝试在Windows Server 2008 R2上安装Redmine时,我发现以下错误,我们找不到解决方案......

要求安装一些东西,当试图安装它时说它找不到它。它建议使用activerecord-mysql2-adapter,但即使这样也行不通......

我现在开始相信ROR很糟糕......

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

2 个答案:

答案 0 :(得分:1)

取决于adapter尝试database.ymlgem install mysql的{​​{1}}行。

答案 1 :(得分:0)

数据库连接可能出错,验证你的mysql是否正在运行,如果正在运行,请在database.yml中验证你的sql连接设置

我也遇到了这个问题,但更改database.yml连接对我有用