Timeout when installing ruby gems
In your Gemfile set your
This may not be an official answer, but it worked for me after three frustrating days trying to access rubygems.org.
source 'http://production.s3.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:
- Disable IPv6, here's how: How to disable IPv6 in Mac OS X
- Restart Mac
- 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
How to Wait for System Command to End
How Do Erlang Actors Differ from Oop Objects
Activemodel::Validations on Anonymous Class
How to Troubleshoot Memory Bloat at Boot for Rails App
Get All Products of Category and Child Categories (Rails, Awesome_Nested_Set)
Using Cucumber with Modular Sinatra Apps
Ruby/Rails Audio Conversion Plugins
How to Silence The Call to a Rails Controller's Action All Together
How to Update All of My Products to a Specific User When Seeding
Rails Application Helper Didn't Support Chinese Characters
Truncate String When It Is Too Long
How to Open File in Default Application. Ruby
How Can Multiple Trailing Slashes Can Be Removed from a Url in Ruby
Automatically Run Rspec When Plain-Old Ruby (Not Rails) Files Change