更换RUBY源
基于众所周知的原因,官方的RUBY源不能连接。所幸的是淘宝有建立一个国内的RUBY源https://ruby.taobao.org
首先变更RUBY源
$ gem sources –add https://ruby.taobao.org/ –remove https://rubygems.org/
确认只有ruby.taobao.com敌人
$ gem sources -l
*** CURRENT SOURCES ***
https://ruby.taobao.org
现在就可以安装ruby程序了,哈哈
$ gem install xxx
发表评论
Want to join the discussion?Feel free to contribute!