Hi, I have Ruby2.4 on windows 10. When I install mysql2 with gem it doesn't contain binary for 2.4. In the meanwhile you can build it yourself, without extra tools, as long as you did install the MSYS2 toolchain (e.g.

Gem install mysql2 -- '--with-mysql-dir='C: mysql-connector ' It Will install the mysql2 and now your check Title: Latest Ruby on Rails Install gem mysql2 on Windows 7 & 8 /8.1/ 9.

Using ruby installer), and it's actually quite easy (and similar for other gems like bcrypt): You will need: • MSYS2 (if you don't have it check: ) • The location of your ruby installation (likely C: Ruby24-x64 ) • The location of your MySQL connector installation (likely C: Program Files MySQL MySQL Connector.C 6.1) • A 'failed' installation of mysql2 (simply run bundle or gem install) The steps are as follows, but substitute the paths so they work for you. I am assuming mysql2 0.4.10, and ruby 2.4.x, with default installation paths: • Open MSYS2 (in my case the 64bit version, via Start Menu or C: msys64 msys2_shell.cmd -mingw64) • Browse to ruby installation, find the gem folder, then go into ext, mysql2. Cd 'C: Ruby24-x64 bin ruby ' extconf.rb --with-mysql-dir= 'C: Program Files MySQL MySQL Connector.C 6.1 ' • You have to prepend with the ruby installation path because your windows environment is not available in this terminal, unless you run with -use-full-path or edit msys2_shell.cmd • If you forget to add the --with-mysql-dir option, the error message thrown is mysql client is missing. Check your installation of MySQL or Connector/C, and try again.

The make file will try to use the lib and include from your Connector installation. Sap authorizations made easy pdf. • Run make in the current directory to 'make' (read: compile / make / build the software).

In the meanwhile you can build it yourself, without extra tools, as long as you did install the MSYS2 toolchain (e.g. Using ruby installer), and it's actually quite easy (and similar for other gems like bcrypt): You will need: • MSYS2 (if you don't have it check: ) • The location of your ruby installation (likely C: Ruby24-x64 ) • The location of your MySQL connector installation (likely C: Program Files MySQL MySQL Connector.C 6.1) • A 'failed' installation of mysql2 (simply run bundle or gem install) The steps are as follows, but substitute the paths so they work for you.

I am assuming mysql2 0.4.10, and ruby 2.4.x, with default installation paths: • Open MSYS2 (in my case the 64bit version, via Start Menu or C: msys64 msys2_shell.cmd -mingw64) • Browse to ruby installation, find the gem folder, then go into ext, mysql2. Cd 'C: Ruby24-x64 bin ruby ' extconf.rb --with-mysql-dir= 'C: Program Files MySQL MySQL Connector.C 6.1 ' • You have to prepend with the ruby installation path because your windows environment is not available in this terminal, unless you run with -use-full-path or edit msys2_shell.cmd • If you forget to add the --with-mysql-dir option, the error message thrown is mysql client is missing. Check your installation of MySQL or Connector/C, and try again. The make file will try to use the lib and include from your Connector installation. • Run make in the current directory to 'make' (read: compile / make / build the software).