开发者

Rails: Incorrect MySQL client library version

I am new to Ruby/ RoR (like ... today开发者_JS百科 new)

In trying my first real command:

rails g controller welcome index

This error appears:

.../lib/mysql2.rb:9: in 'require': Incorrect MySQL client library version! This gem was compiled for 5.5.16 but the client library is 5.1.53 (RunTimeError).

Any step by step help on how to fix this would be most appreciated.

Some background:

  • I did reinstall MySQL between installing RailsInstaller and running this, for other reasons.
  • Win 7 x64, running 32 bit MySQL
  • Ruby/Rails installed today from http://railsinstaller.org


Do you have the development version of MySQL installed that has those libraries? And a C compiler installed?

It may be better to use the ruby native gem (if it still exists) for Windows. That's what we used to do in the Rails 2 days.

Sorry I can't be more help.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜