Construction of development environment under Windows system
1. Remote Installation
- Step 1: Download and install the Ruby one-click installation package
Download the latest Ruby 1.8.4-16 one-click installation package with a download address of :
http://rubyforge.org/projects/rubyinstaller/
Run the installation file after downloading, and click the Next button to install it by default. When the installation is complete, open the Command Line window, enter and run the command Ruby–v, and the successful installation will display the Ruby version number
- step 2: Install rails with RubyGems
RubyGems is a standard Ruby package manager that functions like a apt-get under Linux. Using RubyGems, you can easily download and install rails from a remote server.
Open a Command line window, enter and execute a command gem install rails--remote or gem install rails--include-dependencies, program run results:
Open the Command Line window to enter and run Rails–v and execute the results
Note Using the Gem install Rails--remote install rails, download the rails installation package file directly from the remote server, and install rails using the Gem install Rails--include-dependencies command. Will first look for a rails installation package on the local host and if not, download the installation from the remote server
2. Local Installation
- Step 1: Download and install the Ruby one-click installation package
See the "Remote Installation" section for specific steps.
- step 2: Get Rails To install the plug-in package
Download Rails-1.0.0.gem and rails-1.0.0.zip from the URL address :
http://rubyforge.org/frs/?group_id=307&release_id=4878. Save the downloaded file to the same directory (D:/ror)
Note that you do not need to decompress the compressed file.
- Step 3: Install the Rails plug-in package
Open the Command Line window, enter the D:/ror directory, and execute the command gem install rails to complete the installation.