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.
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.
Choose the installation location.
Add Ruby executables to the PATH variable and associate .rb and .rbw files with the Ruby installation.
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.
Click on the Install button to start the installation process.
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
Verify Ruby
Verify the installation by opening a command prompt and running the following command:
/> ruby -v.
This should display the installed Ruby version.