Building and installing Ruby's environment

Source: Internet
Author: User

The above rough introduction of the next Ruby, originally did not want to install this, because I was learning through the website, can be compiled online. But given the comprehensiveness of the content, try it.

Refer to the next person's installation, try a try.

First because I am windows 7, so just under the relevant version. -Pay attention to everyone's own system, is not the same.

We use Rubyinstaller to install the Ruby environment as: http://rubyinstaller.org/downloads/

Download the Rubyinstaller-2.2.3.exe file, double-click the Rubyinstaller-2.2.3.exe file, and launch the Ruby Setup Wizard.

Remember to tick ADD Ruby executables to your PATH until Ruby Setup is complete

Next, you may need to configure the environment variables.

    • If you are using Windows 9x, add the following in your c:\autoexec.bat: Set path= "D:\ (Ruby installation directory) \bin;%path%" (This is not used, but saved)
    • Windows nt/2000 users need to modify the registry.
      • Open the environment variable.
      • Under System variables, 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. RB and. RBW to the list of variable values and click OK.
    • After installation, make sure everything works by entering the following command on the command line:
      $ruby-2.2.3

      Here I explain, at first I was also very depressed. Because after the command line is entered, the display is not an internal command. Check it out a little bit. Because the command above is not a Windows system. Need to get rid of $

    • Ruby-2.2.3

      As above. I hope we can use it.

Building and installing Ruby's environment

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.