Learn how to set up your Ruby environment on Windows
Ruby 2D works with 64-bit Windows and is tested on the latest releases of Windows 10 (but will probably work with previous versions as well). While there are several ways to get Ruby on Windows, Ruby 2D requires a MinGW environment. We recommend using the latest RubyInstaller for Windows, which is based on MSYS2 (the Ruby 2.3 and older installers are no longer supported). You can download and run the installer, or use Chocolatey to get Ruby and MSYS2 — instructions for both are below.
There are a couple ways to launch a Ruby environment:
cmd.exe) experience, choose the “Start Command Prompt with Ruby” shortcut from the Start menu.
C:\tools\msys64\mingw64.exe. Make sure to add
$PATHvariable, for example by running the following (your Ruby directory might be different):
echo 'export PATH=$PATH:/c/tools/ruby26/bin' >> ~/.bash_profile
To get access to Ruby in the current shell, run
source ~/.bash_profile. Ruby should now be available for this and all new shells. Try running
ruby --version to check. At this time, you might also want to create a convenient shortcut to the
That’s it! Head back to the “get started” guide and write your first 2D app »