Computers

Download and Install Ruby on Windows

Download and Install Ruby on Windows

Let’s download and install Ruby on Windows from this tutorial. Ruby is a dynamic, object-oriented programming language known for its simplicity and productivity. Its elegant syntax makes it a favorite among developers for building web applications, particularly with the Ruby on Rails framework.

Download Ruby

Open a web browser, go to the Ruby website, and download the installer.

  • https://rubyinstaller.org/

 

Download Ruby Installer

To start, download the Ruby + Webkit installer. The file format would be:

rubyinstaller-devkit-<version>-x64

Install Ruby

Locate the installer file and double-click on it to install Ruby. This will launch the installation wizard.

Follow the installation instructions on the install wizard.

 

Install Ruby

Choose the installation location.

Add Ruby executables to the PATH variable and associate .rb and .rbw files with the Ruby installation.

 

Ruby Install Location

Select the install components:

  • Ruby base files
  • Ruby RI and HTML documentation
  • MSYS development toolchain

MSYS2 toolchain

MSYS is a comprehensive development toolchain for efficient system programming and application development. It integrates various tools and libraries to streamline coding, debugging, and deployment processes.

It is a software distribution and development platform that provides a Unix-like environment for Windows. It offers tools and libraries, including a package manager, to help developers build and manage software with a familiar command-line interface and development tools commonly used on Unix systems.

Click on the Install button to start the installation process.

Ruby Installation

Click on the Finish button to close the setup wizard.

Run ridk install to install the MSYS2 toolchain or check the option Run ridk install on the setup wizard screen.

MSYS Installation

MSYS2 Installation

Verify Ruby

Verify the installation by opening a command prompt and running the following command:

/> ruby -v.

This should display the installed Ruby version.