Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Ruby Installation - Windows


May 12, 2021 Ruby



The steps to install Ruby on a Windows machine are listed below.

Note: You may have different available versions when you install.

  • Under the Window system, we can use RubyInstaller to install the Ruby environment at the download address: Click here to download.
  • After downloading rubyinstaller, unzips to the newly created directory:
  • Double-click on the rubyinstaller-2.2.3 .exe file and start the Ruby installation wizard.
  • Click Next to continue with the wizard and remember to check Add Ruby executables to your PATH until ruby installer completes Ruby installation.

If your installation does not configure the environment variables appropriately, you may need to configure the environment variables next.

  • If you're using Windows 9x, add: set PATH.bat "D: (ruby installation directory)"bin" in your c: .autoexec.bat %PATH%"
  • Windows NT/2000 users need to modify the registry.
    • Click on the control panel | system performance | environment variables.
    • Under System Variable, 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 to. R B and . RBW to the list of variable values and click OK.
  • Once installed, make sure everything works by entering the following commands on the command line:
$ ruby -v
ruby 2.2.3
  • If all works, the installed version of the Ruby interpreter will be output, as shown above. If you have a different version installed, a different version is displayed.