help: cannot load such file -- 2.0/mysql_api

Added by Mine Red almost 8 years ago

Dear all, could you please help me on this question? thanks!

C:\ruby200\redmine-2.5.2>rake generate_secret_token --trace
rake aborted!
cannot load such file -- 2.0/mysql_api
C:/ruby200/lib/ruby/gems/2.0.0/gems/activesupport-3.2.19/lib/active_support/depe
ndencies.rb:251:in `require'
C:/ruby200/lib/ruby/gems/2.0.0/gems/activesupport-3.2.19/lib/active_support/depe
ndencies.rb:251:in `block in require'
C:/ruby200/lib/ruby/gems/2.0.0/gems/activesupport-3.2.19/lib/active_support/depe
ndencies.rb:236:in `load_dependency'
C:/ruby200/lib/ruby/gems/2.0.0/gems/activesupport-3.2.19/lib/active_support/depe
ndencies.rb:251:in `require'
C:/ruby200/lib/ruby/gems/2.0.0/gems/mysql-2.8.1-x86-mingw32/lib/mysql.rb:7:in `r
escue in <top (required)>'
C:/ruby200/lib/ruby/gems/2.0.0/gems/mysql-2.8.1-x86-mingw32/lib/mysql.rb:2:in `<
top (required)>'
C:/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler/runtime.rb:76:in `
require'
C:/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler/runtime.rb:76:in `
block (2 levels) in require'
C:/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler/runtime.rb:72:in `
each'
C:/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler/runtime.rb:72:in `
block in require'
C:/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler/runtime.rb:61:in `
each'
C:/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler/runtime.rb:61:in `
require'
C:/ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler.rb:133:in `require
'
C:/ruby200/redmine-2.5.2/config/application.rb:7:in `<top (required)>'
C:/ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
C:/ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
C:/ruby200/redmine-2.5.2/Rakefile:5:in `<top (required)>'
C:/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/rake_module.rb:25:in `l
oad'
C:/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/rake_module.rb:25:in `l
oad_rakefile'
C:/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:637:in `
raw_load_rakefile'
C:/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:94:in `b
lock in load_rakefile'
C:/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:165:in `
standard_exception_handling'
C:/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:93:in `l
oad_rakefile'
C:/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:77:in `b
lock in run'
C:/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:165:in `
standard_exception_handling'
C:/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:75:in `r
un'
C:/ruby200/lib/ruby/gems/2.0.0/gems/rake-10.1.1/bin/rake:33:in `<top (required)>
'
C:/ruby200/bin/rake:23:in `load'
C:/ruby200/bin/rake:23:in `<main>'

C:\ruby200\redmine-2.5.2>

Replies (1)

RE: help: cannot load such file -- 2.0/mysql_api - Added by Mine Red almost 8 years ago

i fixed this problem:
gem install l mysql2-0.2.18.gem - '--with-mysql-lib="C:\WAMP\MySQL\lib" --with-mysql-include="C:\WAMP\MySQL\include"'

just for other user reference.

(1-1/1)