YouTip LogoYouTip

Ruby Installation Windows

# Ruby Installation - Windows Below are the steps to install Ruby on a Windows machine. Download Links: * Official Website: [http://rubyinstaller.org/downloads/](http://rubyinstaller.org/downloads/) * China: [https://rubyinstaller.cn/](https://rubyinstaller.cn/) **Note:** During installation, you may have different versions available. * On Windows, we can use RubyInstaller to install the Ruby environment. Download link: (http://rubyinstaller.org/downloads/). * After downloading rubyinstaller, extract it to a 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 did not properly configure environment variables, you may need to configure them next. * If you are using Windows 9x, 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. * Add the Ruby directory to 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 installed Ruby interpreter, as shown above. If you installed a different version, it will display a different version.
← Ruby Command Line OptionsRuby Installation Unix β†’