Ruby1.9.2 on rails 3.0 Installation Summary (continuous update)

Source: Internet
Author: User

 

I only have windows and MacOS, so I can only write the installation information for these two versions. All the steps below ensure that the installation is successful on the instance.

 

Windows version:

1. ruby installation, version 1.9.2-p0

:

Http://rubyforge.org/frs/download.php/72170/rubyinstaller-1.9.2-p0.exe

Reference page:

Http://rubyinstaller.org/downloads/

 

2. rails Installation

Gem install rails-no-rdoc --- no-ri

After my machine is installed, it will be rails3.0.3.

 

3. ruby-debug installation, the most troublesome:

A. Install devkit. You only need to use the 7z green 3.4.5r3 version. I don't need the latest 4.5.1 exe version. I haven't downloaded it for two days.

:

Http://rubyforge.org/frs/download.php/66888/devkit-3.4.5r3-20091110.7z

Reference page:

Http://rubyforge.org/frs? Group_id = 167

Decompress the package to the ruby installation directory.

 

B. Download ruby192 source code

Ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p0.tar.gz

Decompress the package to c:/Ruby192/src. For example, the vm_core.h directory is c: \ Ruby192 \ src \ vm_core.h.

 

C. Install ruby-debug through the command line

Note that the command should be correct.

Set PATH = c:/Ruby192/bin

Gem install ruby-debug19 -- with-ruby-include = c:/Ruby192/src

I tested the above steps. It took me a morning to download the devkit for version 4.5.1 without moving. I tried it again in the network of vpn, proxy, telecom, and tietong, cannot be downloaded.

Reference: https://github.com/mark-moseley/ruby-debug/wiki/Installation%3A-command-line-version

 

Mac version:

1. rvm Installation

 

 

Problem summary:

1. Slow gem install in China's network environment

Gem install heroku -- no-ri -- no-rdoc-p http: // localhost: 8000-r-backtrace

Using gproxy or other proxy methods, the installation is fast, and direct installation is sometimes too slow to die.

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.