Yan Germanovich
Yan Germanovich

Reputation: 193

Installing gems fails with timeout error

I'm trying to install sass gem. Installing fails with timeout error.

Time out error Error: Could not find a valid gem 'sass' ()=0), here is why: Unable to download data from https ://rubygems.org/ - timed out (https: //api.rubygems.org/specs.4.8.gz)

I tried to change my gem source from https ://rubygems.org/ to http ://rubygems.org/. When I'm trying to change gem source it fails with this error:

this error

Error: While executing gem ... (Errno::ENOENT) No such file or directory @ rb_sysopen - H:/.gemrc

Can you help me with this issue?

(I've inserted spaces in links because I have less then 10 reputation)

Upvotes: 2

Views: 1761

Answers (2)

wmakley
wmakley

Reputation: 1272

You may be experiencing the issue with IPv6 that some others are, including myself. Here is another topic about it: gem cannot access rubygems.org

And numerous threads on rubygems.org: http://help.rubygems.org/discussions/problems/31074-timeout-error

Upvotes: 1

user1032752
user1032752

Reputation: 871

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?

Upvotes: 0

Related Questions