Latest web development tutorials

Ruby installation - Windows

Here are the steps to install Ruby on Windows machines.

Note: During installation, you may have a different version available.

  • Under Window system, we can install Ruby environment RubyInstaller, download address: Click here to download .
  • After downloading rubyinstaller, unzip to the newly created directory:
  • Rubyinstaller-2.2.3.exe Double-click the file to start the installation wizard Ruby.
  • Click Next, continue with the wizard, remember to tick Add Ruby executables to your PATH, until Ruby Ruby installation program completes the installation date.

If your installation did not properly configure the environment variables, then you may need to configure the environment variable.

  • If you are using Windows 9x, then in your c: \ autoexec.bat add: set PATH = "D: \ (ruby installation directory) \ bin;% PATH%"
  • Windows NT / 2000 users need to modify the registry.
    • Click Control Panel | System Performance | environment variable.
    • Under System Variables, select Path, and click EDIT.
    • In the variable value added to the end of the list Ruby directory and click OK.
    • Under System Variables, select PATHEXT, and click EDIT.
    • Add .RB and .RBW to variable values ​​in the list, and click OK.
  • After installation, by entering the following at the command line to make sure everything is working properly:
$ Ruby -v
ruby 2.2.3
  • If everything is working properly, Ruby interpreter will output the installed version, shown above. Other versions If you installed, other different versions will be displayed.