Ruby - Local Environment Setup in Windows
📚 tutorials

Ruby - Local Environment Setup in Windows

1 min read 243 words
1 min read
ShareWhatsAppPost on X
  • 1To install Ruby on Windows, download the latest version from the official Ruby website and unpack the archive.
  • 2Run the Ruby installation wizard by double-clicking the Ruby1.6.7.exe file and follow the prompts until completion.
  • 3After installation, set environment variables for PATH and PATHEXT to ensure Ruby commands work correctly in the command line.

AI-generated summary · May not capture all nuances

Key Insight
AskGif

"To install Ruby on Windows, download the latest version from the official Ruby website and unpack the archive."

Ruby - Local Environment Setup in Windows

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

NOTE - You may have different versions available at the time of installation.

- Download a zipped file having the latest version of Ruby. Follow https://www.ruby-lang.org/en/downloads/.

- 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 set some environment variables if your installation has not set up 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 a different version, so it will display a different version.

Enjoyed this article?

Share it with someone who'd find it useful.

ShareWhatsAppPost on X

AskGif

Published on 11 May 2020 · 1 min read · 243 words

Part of AskGif Blog · tutorials

You might also like

Ruby - Local Environment Setup in Windows | AskGif Blog