Loading

rails 安装后调整gem sources 地址

rails 安装后调整gem sources 地址

使用https会有认证的问题;

移除原有的:

gem sources --remove https://rubygems.org/

查看当前的:

gem sources -l

添加新的:

gem sources -a https://ruby.taobo.org/

出现认证问题:

Error fetching https://ruby.taobao.org/:
SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://gems.ruby-china.org/specs.4.8.gz)

或者

gem sources -a https://gems.ruby-china.org/

一样出现问题:

Error fetching https://gems.ruby-china.org/:
SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://gems.ruby-china.org/specs.4.8.gz)

后来不使用https:

gem sources -a http://gems.ruby-china.org/

修改通过;

 

posted @ 2017-04-15 18:53  stono  阅读(937)  评论(0编辑  收藏  举报