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.