Search code examples
rubyrubygemsgemcutter

gem sources fails with a ETIMEDOUT


gem sources -a http://gemcutter.org Error fetching http://gemcutter.org: Errno::ETIMEDOUT: A connection attempt failed because the connected party did not properly respond after a period of time, or established conn ction failed because connected host has failed to respond. - connect(2) (h tp://gemcutter.org/specs.4.8.gz)

How do I fix this issue?


Solution

  • You can simply put sources into config file in your home directory.

    cat ~/.gemrc

    ---
    :sources: 
    - http://rubygems.org