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