Ruby Installation - Windows
The following steps outline the process for installing Ruby on a Windows machine.
Note: During installation, you may have different available versions.
On Windows, we can use RubyInstaller to set up the Ruby environment. Download it from: Click here to download.
After downloading the rubyinstaller, extract it to a newly created directory:
Double-click the rubyinstaller-2.2.3.exe file to launch the Ruby installation wizard.
Click Next, continue through the wizard, and remember to check Add Ruby executables to your PATH until the Ruby installation is complete.
If your installation did not properly configure the environment variables, you may need to configure them next.
If you are using Windows 9x, add the following to your c:\autoexec.bat: set PATH="D:(ruby installation directory)\bin;%PATH%"
Windows NT/2000 users need to modify the registry.
Go to Control Panel | System Performance | Environment Variables.
Under System Variables, select Path and click EDIT.
Add the Ruby directory at the end of the variable value list and click OK.
Under System Variables, select PATHEXT and click EDIT.
Add .RB and .RBW to the variable value list and click OK.
After installation, ensure everything is working correctly by entering the following command in the command line:
$ ruby -v ruby 2.2.3
If everything is working correctly, it will output the version of the Ruby interpreter installed, as shown above. If you installed a different version, it will display that version instead.