Ruby Installation - Windows
The steps to install Ruby on a Windows machine are listed below.
Download address:
- Official site:http://rubyinstaller.org/downloads/
- In China:https://rubyinstaller.cn/
**Note:** During installation, you may have different versions available.
- On Windows systems, we can use RubyInstaller to install the Ruby environment. The download address is:Please click here to download。
- After downloading rubyinstaller, extract it into a newly created directory:
- Double-click the rubyinstaller-2.2.3.exe file to launch the Ruby installation wizard.
- Click Next to continue the wizard, remembering to check Add Ruby executables to your PATH, until the Ruby installer completes the Ruby installation.
If your installation did not properly configure 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.
- Click 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 properly by entering the following command at the command line:
$ ruby -v
ruby 2.2.3
- If everything works properly, the version of the installed Ruby interpreter will be output as shown above. If you installed a different version, a different version will be displayed.