Ryan Kennedy
Ryan Kennedy

Reputation: 51

curl, gem install failed to connect

I've looked at all the possible answers on google and I just can't figure this out. I'm literally going insane here!

I'm running osx lion and have ruby & rubyGems installed but whenever i try and run:

gem install rails

even with a sudo I get :

WARNING:  Error fetching data: Host is down - connect(2) (http://rubygems.org/latest_specs.4.8.gz)
WARNING:  Error fetching data: Host is down - connect(2) (http://rubygems.org/specs.4.8.gz)
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
Host is down - connect(2) (http://rubygems.org/gems/i18n-0.6.0.gem)

and then when i try install rvm using :

curl -L https://get.rvm.io | bash -s stable

I get :

curl: (7) Failed to connect to 208.85.148.213: Host is down

now I'm not very good with the whole terminal thing so maybe it's me but i'm not behind a proxy and firewall is turned off.

I have checked gems sources and it's correct.

Any ideas?

Upvotes: 2

Views: 1332

Answers (2)

Remear
Remear

Reputation: 1937

As stated above, this sounds like a connection issue on your end. Verify your firewall and try running some traceroutes. Your DNS settings appear to be somewhat correct since your lookup of rvm.io returns the same IP for me.

Upvotes: 0

deefour
deefour

Reputation: 35370

This sounds like a firewall issue - do you have something like LittleSnitch or Hands Off! installed? If so, disable them and try again; you likely have a rule blocking access from shell.

A quick google search shows at least one other person has the issue you're having and had a firewall rule blocking access.

Upvotes: 5

Related Questions