求知若饥,虚心若愚

设置gem源,解决下载慢的问题

问题解决的最好方法方法

使用google的DNS 8.8.8.8 / 8.8.4.4

另一种解决方式

修改rubygems的source源

$ gem source -r http://rubygems.org/
$ gem source -r http://production.s3.rubygems.org/
增加新source源
$ gem source -a http://production.s3.ru

如果使用Bundler

修改你的 Gemfile 将 http://rubygems.org 改为 http://ruby.taobao.org/

来源:
http://blog.banban.me/blog/2012/03/26/she-zhi-gemyuan-%2Cjie-jue-xia-zai-man-de-wen-ti/

posted @ 2014-10-22 14:38  初行  阅读(3903)  评论(1编辑  收藏  举报