Timeout When Installing Ruby Gems

Timeout when installing ruby gems

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.

Installing gems fails with timeout error

Hard to say without some more info but judging from your second error - it may be that your PATH environment variable may be set incorrectly.

Looks like ruby is trying to read from the H:/ drive - is that where the interpreter is installed?. This may help [How do I add Ruby to the PATH variable on Windows?

Ruby gem install comes up with timeout error every time

This question is 7 months old now. As ipd references, on both Mac and Windows, temporarily disabling the IPv6 stack allowed my bundle install request to complete without hiccup.

gem install error: timed out https://api.rubygems.org/

Try disabling IPv6 on your Ubuntu

ERROR: Unable to download data from http://rubygems.org/ - timed out (http://rubygems.org/specs.4.8.gz)

Okay I finally managed to solve it by following this steps:

  1. Disable IPv6, here's how: How to disable IPv6 in Mac OS X
  2. Restart Mac
  3. Run sudo gem install cocoapods --source http://rubygems.org in terminal without changing directories.


I hope I can help anyone facing the same issue, since I know it can be really frustrating and it takes time that could've been used by working in your projects.



Related Topics



Leave a reply



Submit