- Download and install Ruby from RubyInstaller
- Download Development Kit and follow the installation instructions
- Download Mysql Connector/C and extract it into a path without spaces. For example c:\mysql-connector
- Run gem install mysql2 -- --with-mysql-include=c:\mysql-connector\include --with-mysql-lib=c:\mysql-connector\lib to install the gem.
- Copy c:\mysql-connector\lib\libmysql.dll to your Ruby bin path.
Last active
December 15, 2015 11:29
-
-
Save loveky/5253549 to your computer and use it in GitHub Desktop.
Install Ruby mysql2 gem on Windows 7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment