Timeout when installing ruby gems
ruby, rubygems
Solution
In your Gemfile set your
`source 'http://production.s3.rubygems.org'`
This may not be an official answer, but it worked for me after three frustrating days trying to access rubygems.org.
Problem
I'm trying to install the bundler gem using `$ gem install bundler`. When I execute the command, I receive the following response: ``` ERROR: Could not find a valid gem 'bundler' (>= 0), here is why: Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Operation timed out - connect(2) (https://api.rubygems.org/latest_specs.4.8.gz) ERROR: Possible alternatives: bundler ``` In an effort to make sure I wasn't going crazy, I tried installing nokogiri: ``` ERROR: Could not find a valid gem 'nokogiri' (>= 0), here is why: Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Operation timed out - connect(2) (https://api.rubygems.org/latest_specs.4.8.gz) ERROR: Possible alternatives: nokogiri ``` And a2z: ``` ERROR: Could not find a valid gem 'a2z' (>= 0), here is why: Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Operation timed out - connect(2) (https://api.rubygems.org/quick/Marshal.4.8/a2z-0.1.3.gemspec.rz) ``` If anyone has experience this issue before and can help me out it would be greatly appreciated. If it helps, I'm running MacOS Mavericks and have gem version 2.2.2.