English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The following lists the steps to install Ruby on Windows machines.
Note:You may have different available versions during installation.
Under the Windows system, we can use RubyInstaller to install the Ruby environment, the download address is:Please click here to download.
After downloading rubyinstaller, unzip it into the newly created directory:
Double-click on rubyinstaller-2.2.3.exe file to start the Ruby installation wizard.
Click Next to continue the wizard and remember to check Add Ruby executables to your PATHuntil the Ruby installation program completes the Ruby installation.
If your installation has not properly configured the environment variables, you may need to configure the environment variables next.
If you are using Windows 9x, then please 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.
Click Control Panel | System Performance | Environment Variables.
Under System Variables, select Path and click EDIT.
At the end of the list of variable values, add the Ruby directory and click OK.
Under System Variables, select PATHEXT and click EDIT.
Add .RB and .RBW to the list of variable values and click OK.
After installation, ensure everything is working properly by entering the following command in the command line:
$ ruby -v ruby 2.2.3
If everything works properly, the version of the Ruby interpreter installed will be output, as shown above. If you have installed a different version, a different version will be displayed.