Project

General

Profile

rake db:migrate problem

Added by Sergey tsvetkov over 9 years ago

Hi all,

I try install last redmine version 2.6.0 on my Windows 7 x64 EN.
I alredy install MySQL 5.6.21, MySQL Connector/C 6.1.5, Ruby On Rails 2.1.3, Dev kit DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe.
On stage rake db:migrate I have this:

Microsoft Windows [Version 6.1.7601]
(c) Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены.

C:\Windows\system32>CD C:\Ruby21-x64\apps\redmine

C:\Ruby21-x64\apps\redmine>rake db:migrate
rake aborted!
LoadError: Please install the mysql2 adapter: `gem install activerecord-mysql2-a
dapter` (mysql2 is not part of the bundle. Add it to Gemfile.)

Gem::LoadError: mysql2 is not part of the bundle. Add it to Gemfile.

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

C:\Ruby21-x64\apps\redmine>gem list

  • LOCAL GEMS ***

actionmailer (4.1.6, 3.2.19)
actionpack (4.1.6, 3.2.19)
actionview (4.1.6)
activemodel (4.1.6, 3.2.19)
activerecord (4.1.6, 3.2.19)
activeresource (4.0.0, 3.2.19)
activesupport (4.1.6, 3.2.19)
arel (5.0.1.20140414130214, 3.0.3)
bigdecimal (1.2.5, 1.2.4)
builder (3.2.2, 3.0.4)
bundler (1.7.4)
cgi_multipart_eof_fix (2.5.0)
coderay (1.1.0)
coffee-rails (4.0.1)
coffee-script (2.3.0)
coffee-script-source (1.8.0)
daemons (1.1.9, 1.0.10)
erubis (2.7.0)
execjs (2.2.2)
fastthread (1.0.7)
gem_plugin (0.2.3)
hike (2.1.3, 1.2.3)
i18n (0.7.0.beta1, 0.6.11)
io-console (0.4.2)
jbuilder (2.2.4)
journey (1.0.4)
jquery-rails (3.1.2)
json (1.8.1)
mail (2.6.1, 2.5.4)
mime-types (2.4.3, 1.25.1)
minitest (5.4.2, 4.7.5)
mongrel (1.2.0.pre2)
multi_json (1.10.1)
mysql2 (0.3.16)
net-ldap (0.9.0, 0.3.1)
polyglot (0.3.5)
psych (2.0.5)
rack (1.5.2, 1.4.5)
rack-cache (1.2)
rack-openid (1.4.2)
rack-ssl (1.3.4)
rack-test (0.6.2)
rails (4.1.6, 3.2.19)
rails-observers (0.1.2)
railties (4.1.6, 3.2.19)
rake (10.3.2, 10.1.0)
rbpdf (1.18.2)
rdoc (4.1.2, 4.1.0, 3.12.2)
request_store (1.0.5)
ruby-openid (2.3.0)
rubygems-update (2.4.2)
sass (3.2.19)
sass-rails (4.0.3)
sdoc (0.4.1)
sprockets (3.0.0.beta.2, 2.11.0, 2.2.2)
sprockets-rails (2.2.0)
sqlite3 (1.3.9 x64-mingw32)
test-unit (2.1.3.0)
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
treetop (1.4.15)
turbolinks (2.5.1)
tzinfo (1.2.2, 0.3.42)
uglifier (2.5.3)

C:\Ruby21-x64\apps\redmine>bundle install
DL is deprecated, please use Fiddle
Using rake 10.3.2
Using i18n 0.6.11
Using multi_json 1.10.1
Using activesupport 3.2.19
Using builder 3.0.4
Using activemodel 3.2.19
Using erubis 2.7.0
Using journey 1.0.4
Using rack 1.4.5
Using rack-cache 1.2
Using rack-test 0.6.2
Using hike 1.2.3
Using tilt 1.4.1
Using sprockets 2.2.2
Using actionpack 3.2.19
Using mime-types 1.25.1
Using polyglot 0.3.5
Using treetop 1.4.15
Using mail 2.5.4
Using actionmailer 3.2.19
Using arel 3.0.3
Using tzinfo 0.3.42
Using activerecord 3.2.19
Using activeresource 3.2.19
Using coderay 1.1.0
Using rack-ssl 1.3.4
Using json 1.8.1
Using rdoc 3.12.2
Using thor 0.19.1
Using railties 3.2.19
Using jquery-rails 3.1.2
Using net-ldap 0.3.1
Using ruby-openid 2.3.0
Using rack-openid 1.4.2
Using bundler 1.7.4
Using rails 3.2.19
Using rbpdf 1.18.2
Using request_store 1.0.5
Your bundle is complete!
Gems in the groups development, test and rmagick were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.

C:\Ruby21-x64\apps\redmine>

I know about libmysql.dll problem(http://stackoverflow.com/questions/8740868/mysql2-gem-compiled-for-wrong-mysql-client-library) and use it from mysql-connector-c-noinstall-6.0.2-win32.zip.

Please help.