Skip to content

Instantly share code, notes, and snippets.

@remomueller
Last active April 5, 2018 09:29
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remomueller/5027829 to your computer and use it in GitHub Desktop.
Save remomueller/5027829 to your computer and use it in GitHub Desktop.
Installation of Ruby 2.0.0-p0 on Windows 7 (64-bit) with DevKit and MySQL instructions

Install Ruby

Run rubyinstaller-2.0.0.p0.exe

  • Add Ruby executables to your PATH
  • Associate .rb and .rbw files with this Ruby installation

Initialize DevKit

Run DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe

  • Extract to C:\DevKit-x64

Open command shell

cd C:\DevKit-x64
ruby dk.rb init
ruby dk.rb install

Windows (x86, 64-bit), ZIP Archive - mysql-connector-c-noinstall-6.0.2-winx64.zip

Open and extract to C:\mysql-connector-c-noinstall-6.0.2-winx64

gem install mysql2 --no-ri --no-rdoc --platform=ruby -- --with-mysql-include=C:/mysql-connector-c-noinstall-6.0.2-winx64\include --with-mysql-lib=C:/mysql-connector-c-noinstall-6.0.2-winx64\lib

Copy libmysql.dll to Ruby installation bin

copy C:\mysql-connector-c-noinstall-6.0.2-winx64\lib\libmysql.dll C:\Ruby200-x64\bin\libmysql.dll

More gems for Rails

Update and install Bundler, v1.3.0.pre.8 currently has a bug.

gem install bundler -v=1.3.0.pre.7 --no-ri

If using thin in your Gemfile, then you may also need to manually install eventmachine

gem install eventmachine -v1.0.0  --platform=ruby --no-ri

Time to go to your Rails directory

cd C:\..\railsapp
bundle update
@64vintage
Copy link

Worked perfectly; thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment