Ruby gem mysql2 install error

后端 未结 9 1508
无人及你
无人及你 2020-12-05 08:10

I have the Ruby version ruby 1.9.2p0 (2010-08-18) [i386-mingw32] installed in Windows7. and the gem vesion 1.3.7

When i tried to install mysql gem, it is showing

9条回答
  •  心在旅途
    2020-12-05 08:51

    it works, c:> gem install mysql2 -- '--with-mysql-lib="C:\Prog ram Files\MySQL\MySQL Connector C 6.0.2\lib\opt" --with-mysql-include="C:\Progra m Files\MySQL\MySQL Connector C 6.0.2\include"'

    Temporarily enhancing PATH to include DevKit...

    Building native extensions. This could take a while...

    Successfully installed mysql2-0.3.6

    1 gem installed

    Installing ri documentation for mysql2-0.3.6...

    Enclosing class/module 'mMysql2' for class Client not known

    Installing RDoc documentation for mysql2-0.3.6...

    Enclosing class/module 'mMysql2' for class Client not known

    Note:

    I. If there is no lib and include directory in your mysql then install mysql connector c

    II. First install DevKit then only you can install mysql2 plugin in windows https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

提交回复
热议问题