Ruby installation - Windows
Listed below are the steps to install Ruby on a Windows machine.
NOTE: At the time of installation, you may have different versions available.
Under Window system, we can use RubyInstaller to install the Ruby environment. The download address is: Please click here to download.
After downloading rubyinstaller, unzip it to the newly created directory:
Double-click the rubyinstaller-2.2.3.exe file to start the Ruby installation wizard .
Click Next to continue the wizard, remember to check Add Ruby executables to your PATH until the Ruby installer completes the Ruby installation.
If your installation does not have environment variables configured appropriately, you may need to configure environment variables next.
If you are using Windows 9x, please add in your c:\autoexec.bat: set PATH="D:\(ruby installation directory)\bin;% PATH%"
Windows NT/2000 users need to modify the registry.
Click Control Panel | System Performance | Environment Variables.
Under System Variables, select Path and click EDIT.
Add the Ruby directory at the end of the list of variable values 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, make sure everything is working properly by entering the following command at the command line:
$ ruby -v ruby 2.2.3
If everything is working fine, the version of the installed Ruby interpreter will be output, as shown above. If you have a different version installed, a different version will be displayed.