Build Ruby on Rails development environment under Windows system

Source: Internet
Author: User

Construction of development environment under Windows system

1. Remote Installation

A, 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

B, 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

A, Step 1: Download and install the Ruby one-click installation package

See the "Remote Installation" section for specific steps.

B, 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.

C, 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.

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.

Tags Index: