Ruby image installation, ruby Image

Source: Internet
Author: User

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 rackOrbundle installHalf a day without response.gem install rails -VTo 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

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.