Ruby installation-Windows
The steps for installing Ruby on a Windows machine are listed below.
Note: you may have different versions available during installation.
Under the Window system, we can use RubyInstaller to install the Ruby environment at: Please click here to download .
After downloading rubyinstaller, extract it to the newly created directory:
Double click
rubyinstaller-2.2.3.exe
file to launch the Ruby installation wizard.Click Next to continue the wizard, and remember to check Add Ruby executables to your PATH until the Ruby installer completes the Ruby installation.
If your installation does not configure the environment variables properly, you may need to configure the environment variables next.
If you are using Windows 9x, please use 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 |Performance| Environment variable.
Under the system variable, select Path and click EDIT.
Add the Ruby directory at the end of the list of variable values and click OK.
Under the system variable, select PATHEXT and click EDIT.
Add
.RB
and.RBW
to go to the list of variable values and click OK.
After installation, ensure that everything works properly by entering the following command on the command line:
$ ruby -v
ruby 2.2.3
If everything works fine, the installed version of the Ruby interpreter willbe output, as shown above. If you have another version installed, differentversions are displayed.