w3resource logo


Ruby tutorials

Ruby Installation on Windows

Secondary Nav

RubyInstaller for Windows

The RubyInstaller project provides developers working on Windows systems a quick and easy way to begin developing with Ruby using an MRI-based (Matz’s Ruby Implementation) environment.

Goals of the RubyInstaller :

  • Provide a easy way to install Ruby in various Windows platforms.
  • Provide an optional Development Kit to build mswin32-compatible Ruby extensions natively on Windows platforms using a MSys/MinGW based toolchain.
  • Provide a build environment via this project and complementary projects like rake-compiler to help developers easily build Ruby and Ruby C extensions from source code.

Windows versions : Currently RubyInstaller explicitly supports Windows XP, Windows Vista, Windows 7, and Windows 8 in both 32 and 64-bit flavors.

Binary packages for Windows : The binary packages for Windows found on ruby-lang.org lack several key components, such as OpenSSL, Zlib and Readline, which results in a broken experience for users trying install these binary distributions out-of-the-box. To compound the issue, other extensions are built-in, but lack essential bindings such as Tk and gdbm.

Install Ruby on Windows by RubyInstaller :

ruby installer windows

Clicking on the Download button following Web page will appear.

ruby installer download for windows

Version to Download : If you don’t know what version to install and you’re getting started with Ruby, you ca use Ruby 2.1.X installers. These provide a stable language and a extensive list of packages (gems) that are compatible and updated.
The 64-bit versions of Ruby are relatively new on the Windows area and not all the packages have been updated to be compatible with it. To use this version you will require some knowledge about compilers and solving dependency issues, which might be too complicated if you just want to play with the language.

Here are the steps to install Ruby on a Windows machine.

NOTE: You may have different version available at the time of installation.

  • Double click on the installer file to start the Ruby installation wizard.
  • Click next to move and keep moving till Ruby installer completes installing Ruby.
  • After successfully installation you may set the Ruby PATH in system variable.

Now check within Program Files :

Ruby in windows



Join our Question Answer community to learn and share your programming knowledge.