Why is there this?
Due to domestic network reasons (you know), the intermittent connection to the resource file that rubygems.org stored on Amazon S3 failed. So you will encounter gem install rack
or bundle install
when the time is not responding, specifically can be used gem install rails -V
to view the execution process.
This is a full rubygems.org image, you can use this instead of the official version, the synchronization frequency is currently15 minutes at a time to ensure that the official services are as synchronized as possible.
How do I use it?
$ gem Sources--remove https://rubygems.org/$ gem sources-a https://ruby.taobao.org/$ gem sources-l*** current S Ources ***https://ruby.taobao.org# Make sure only ruby.taobao.org$ gem Install rails
If you are using bundles (Rails project)
' https://ruby.taobao.org/'rails '4.1.0'. .
Ruby Source code image Ruby source code download image
This image is derived from cache.ruby-lang.org to improve the speed of native ruby installations.
- Ruby-2.1.2.tar.gz
- Ruby-2.0.0-p451.tar.gz
- Ruby-1.9.3-p545.tar.gz
- Ruby-1.9.2-p320.tar.gz
- Ruby-1.8.7-p358.tar.gz
Modify the RVM, use this site as a download source, improve the installation speed.
For Mac
$RVM _path/config/db
For Linux
$RVM _path/config/db transfer from: http://ruby.taobao.org/
rubygem domestic image resolves issue with gem install rails connection Timeout