在进行安装bundle时,会出现以下的错误。
# gem install bundle
ERROR: Could not find a valid gem ‘bundle’ (>= 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)ruby
这种状况,是被墙了。markdown
# gem sources --remove https://rubygems.org/
# gem sources -a http://ruby.taobao.org/
# gem sources -a https://ruby.taobao.org/
# gem sources -l
# gem install bundle
Fetching: bundler-1.10.6.gem (100%) Successfully installed bundler-1.10.6