Ruby Installation - Windows

Advertisements


Here are the steps to install Ruby on a Windows machine.

NOTE: You may have different version available at the time of installation.

  • Download a zipped file having latest version of Ruby. Follow Download Link.

  • After having downloaded the Ruby archive, unpack it and change into the newly created directory:

  • Double-click the Ruby1.6.7.exe file. The Ruby installation wizard starts.

  • Click Next to move to the Important Information page of the wizard and keep moving till Ruby installer completes installing Ruby.

You may need to some environment variables if your installation has not setup them appropriately.

  • If you use Windows 9x, add the following lines to your c:\autoexec.bat: set PATH="D:\(ruby install directory)\bin;%PATH%"

  • Windows NT/2000 users need to modify their registries.

    • Click Control Panel | System Properties | Environment Variables.

    • Under System Variables, select Path and click EDIT.

    • Add your 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, make sure everything is working fine by issuing the following command on the command-line:

$ruby -v
ruby 1.6.7
  • If everything is fine, this should output the version of the installed Ruby interpreter as shown above. You may have installed different version, so it will display a different version.



Advertisements
Advertisements