Tag Archives: gems

ruby gems 更改源

因为众所周知的原因,gem update,install等命令经常会遇到超时timeout,半天无响应,卡住等问题,建议换成淘宝的镜像源:

$ gem sources --remove https://rubygems.org/
$ gem sources -a https://ruby.taobao.org/
$ gem sources -l
*** CURRENT SOURCES ***

https://ruby.taobao.org
# 请确保只有 ruby.taobao.org
$ gem install rails

 

 

参考资料:http://ruby.taobao.org/