How to install Ruby on Windows

Ruby is an important programming language and development environment. We use Ruby in web development and data analysis, and it is also a general-purpose language.

In order to run Ruby on Windows, you must install Ruby and the required developer tools. The following steps will install Ruby in Windows:

  1. Go to the Ruby installer for Windows.
widget
  1. Click on the Download button.
widget
  1. Select and download the appropriate installer for your machine’s specs. Check the properties of This PC in your PC to confirm whether you need a 32-bit installer or 64-bit. Make sure you choose from the with DevKit list.
widget
  1. Run the installer. Select the path where you want to set up Ruby files, accept the license, and then click Install. You can customize the options that pop up after clicking next each time, but the default configuration works well for general use.
widget
  1. After Ruby is installed, you need to install relevant developer tools if you did not choose from the ‘with DevKit’ list. For that, go back to the downloads and set it up using the archives.
  2. Next, add Ruby to your PATH environment variables.
  3. To confirm if Ruby has been installed properly, open the command line and enter ruby --version. If the installed version number is printed, Ruby has been installed correctly.
widget
widget

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved