gem install bundle 安裝失敗

  1. 在進行安裝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

  2. 這種狀況,是被牆了。markdown

  3. 須要替換了,以下:
    # gem sources --remove https://rubygems.org/
    https://rubygems.org/ removed from sources
    # gem sources -a http://ruby.taobao.org/
    Error fetching http://ruby.taobao.org/:
    bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)
    # gem sources -a https://ruby.taobao.org/
    source https://ruby.taobao.org/ already present in the cache
    # gem sources -l
    CURRENT SOURCES
    https://ruby.taobao.org/
    # gem install bundle Fetching: bundler-1.10.6.gem (100%) Successfully installed bundler-1.10.6
相關文章
相關標籤/搜索