Multiple methods for installing the ROR framework in windows

Source: Internet
Author: User
Here we will mainly sort out how to install Rails in Windows. Rails supports multiple operating systems, such as Windows and Linux. Here we will introduce several installation methods based on the Windows development environment.
1. You can download an all-in-one rails running environment with language support, editing environment, database, and server: Instant Rails. This installation method is very simple. You can directly run the tool without any configuration.
2. you can specify an address to install without an Internet connection, such as E:/rails/ruby install> gem install rails -- source http://gems.rubyonrails.org; or enter E: /rails/ruby install> gem install rails -- remote download the installation package.
3. You can install rails by setting a proxy. For example, in the command window, type:
Set http_proxy = http: // proxy_address
Gem install rails -- include-dependencies
4. To better understand the components of rails, this article will introduce the manual installation method in detail.
(1) first install Ruby. Official Website http://rubyforge.org/frs/download one-click Ruby Installer to a local directory, such as E:/rails/ruby install. One-Click Ruby installeris a set of files that support the rubylanguage. Run this file to install the latest versions of ruby and gem in C:/ruby by default.
(2) Check whether ruby has been installed successfully. Run the ruby-v command in the commond window. If the installation is successful, the following running result is displayed.
C:/Documents and Settings/Administrator> ruby-v
Ruby 1.8.6 (patchlevel 0) [i386-mswin32]
(3 ). visit the official website http://rubyforge.org/projectsto download activesupport (the latest version is 1.4.2), activerecord (the latest version is 1.15.3), actionpack (the latest version is 1.13.3), actionmailer (the latest version is 1.3.3), rake (the latest version is 0.7.3), actionwebservice (the latest version is 1.2.3. In http://rubyforge.org/frs? Group_id = 307 to download rails (the latest version is 1.2.3); In the http://rubyforge.org/frs? Group_id = 307 download rails (the latest version is 1.2.3)
(4) Put all downloaded files in a directory E:/rails/ruby install, and then run them one by one in the Command window.
E:/rails/ruby install> gem install activesupport-1.4.2.gem
E:/rails/ruby install> gem install activerecord-1.15.3.gem
E:/rails/ruby install> gem install actionpack-1.13.3.gem
E:/rails/ruby install> gem install actionmailer-1.3.3.gem
E:/rails/ruby install> gem install actionwebservice-1.2.3.gem
E:/rails/ruby install> gem install rake-0.7.3.gem
(5). Continue to run E:/rails/ruby install> gem install rails-1.2.3.gem, install rails
(6) Check whether ruby has been installed successfully. Run the rails-v command in the commond window. If the installation is successful, the following running result is displayed.
C:/Documents and Settings/Administrator> rails-v
Rails 1.2.3
The installation is complete. (Note that there should be no spaces in the ruby installation path; otherwise, an error will occur when running rails)
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.