Ruby image installation, ruby Image
Because of the domestic network, the intermittent connection of resource files stored on Amazon S3 by rubygems.org fails. So you willgem install rack
Orbundle install
Half a day without response.gem install rails -V
To view the execution process.
This is a complete rubygems.org image. You can use this image to replace the official version. The synchronization frequency is currently 15 minutes to ensure that it is synchronized with the official service whenever possible. How to use it?
$ Gem sources -- remove https://rubygems.org/$ gem sources-a https://ruby.taobao.org/$ gem sources-l *** current sources *** https://ruby.taobao.org # Make sure only ruby.taobao.org $ gem install rails
If you use Bundle (Rails Project)
source 'https://ruby.taobao.org/'gem 'rails', '4.1.0'...
Ruby source code image Ruby source code download Image
This image comes from the cache.ruby-lang.org to improve the speed of Ruby installation in China.
- Ruby-2.2.0.tar.gz
- Ruby-2.1.4.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 RVM and use this site as the download source to increase the installation speed.
FOR MAC
$ sed -i .bak 's!cache.ruby-lang.org/pub/ruby!ruby.taobao.org/mirrors/ruby!' $rvm_path/config/db
FOR LINUX
$ sed -i 's!cache.ruby-lang.org/pub/ruby!ruby.taobao.org/mirrors/ruby!' $rvm_path/config/db
FAQs