Which version to download?
If you don’t know what version to install and you’re getting started with Ruby, we recommend you use Ruby+Devkit 2.4.X as x64 or x86 installers. These provide the biggest number of compatible gems and installs MSYS2-Devkit alongside Ruby, so that gems with C-extensions can be compiled immediately.
How to update?
Ruby can be updated to the latest patch version (e.g. from 2.4.1 to 2.4.4) by running the new installer version.
Installed gems are not overwritten and will work with the new version without re-installation.
It’s sufficient to use the RubyInstaller without Devkit for update installations.
The Devkit can be updated separately per
ridk install command.
If the new Ruby version is from a different stable branch, then please use a new target directory for installation. That is to say a previous RubyInstaller-2.4.x installation should not be updated by installing RubyInstaller-2.5.x into the same directory. This is because gems with C extensions are not compatible between ruby-2.4 and 2.5.
Which Development Kit?
Starting with Ruby 2.4.0 we use the MSYS2 toolchain as our development kit. When using the Ruby+Devkit installer version, it is a selectable component, so that no additional downloads/installs are required.
When using the Ruby without Devkit version, the MSYS2 Devkit can be installed separately by running
MSYS2 is required to build native C/C++ extensions for Ruby and is necessary for Ruby on Rails.
Moreover it allows the download and usage of hundreds of Open Source libraries which Ruby gems can depend on.
Down this page, several and other versions of Development Kits (DevKit) are listed. Please download the right one for your version of Ruby:
- Ruby 2.4.0 and newer: The MSYS2 DevKit is downloaded as the last step of the installation.
It can be installed later per
- Ruby 2.0.0 to 2.3.x (32bits): mingw64-32-4.7.2
- Ruby 2.0.0 to 2.3.x (64bits): mingw64-64-4.7.2
Speed and Convenience
RubyInstaller is compiled with the latest GCC at the release date. The installed ruby is a native Windows application but combines this with the rich UNIX toolset of MSYS2 and the large repository of MINGW libraries.
Find more about RubyInstaller and it’s alternatives here.
Enjoy, happy Ruby coding, and let us know what you think or if you have any issues at our helpful and friendly RubyInstaller Google Group.