首页 > Web开发 > 详细

gem install Unable to download data from https://rubygems.org/

时间:2015-12-04 21:07:27      阅读:976      评论:0      收藏:0      [点我收藏+]

problem:

   root@gitlab:~# gem install bundler --no-ri --no-rdoc
ERROR:  Could not find a valid gem ‘bundler‘ (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://rubygems.org/latest_specs.4.8.gz)


solution:  used --source option to specify the http protocol not https.

  root@gitlab:~# gem install bundler --no-ri --no-rdoc --source http://rubygems.org
Fetching: bundler-1.10.6.gem (100%)
Successfully installed bundler-1.10.6
WARNING:  Unable to pull data from ‘https://rubygems.org/‘: Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://rubygems.org/latest_specs.4.8.gz)
1 gem installed
root@gitlab:~#

gem install Unable to download data from https://rubygems.org/

原文:http://dogrider.blog.51cto.com/771879/1719603

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!