Here’s a small cheat sheet for installing both the Ruby runtime, and the Ruby compiler and SDK that you can use for developing gems, and compiling gems from source, which is necessary from time to time.
First go to RubyInstaller.org and download the package
Ruby 2.3.3 (x64) and install it.
I recommend installing in the root of your OS drive, so
C:\Ruby23-x64, check the box
Add Ruby executables to your PATH, this option should make life easier later on, for instance if you want to build from CMD, or from Git BASH as I do.
Second, download the package
DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe, and unpack it to
Configuring Ruby - part one
C:\RubyDev\postinstall and run the script
Do you wish to continue with the post install? Type
y, and hit Enter.
Do you have MinGW installed? Type
n, and hit Enter.
A tip will come up suggesting that if you install MinGW, install it to a specific path, this is not relevant right now, so just hit Enter.
If prompted for a conflict in MinGW version, just ignore this and hit Enter again.
Now this process is over, just hit Enter again, and the script will exit.
Configuring Ruby - part two
Start the newly installed MinGW, or any previously installed MinGW prompts, and cd to
ruby dk.rb init.
Open the file
C:\RubyDev\config.yml in a text editor, and make the content like below.
Finally, run the command
ruby dk.rb install. If you get a warning about skipping, because you have a previous or misconfigured installtion, run the command
ruby dk.rb install --force instead.
Now you’re done, and should be ready for installing and developing (with) Ruby gems :-)