views:

22

answers:

1

I get the following error while performing the following commmand of adding rubygems.orgs as the gem source. I am having Windows XP.

C:\>gem source --add http://rubygems.org
Error fetching http://rubygems.org:
        SocketError: getaddrinfo: no address associated with hostname. (http://r
ubygems.org/specs.4.8.gz)

Please help me out and thanks in advance

A: 

It could be a DNS issue, as shown in this thread.

$ host rubygems.org rubygems.org has address 72.4.120.124
rubygems.org mail is handled by 10 izmunuti.segment7.net.
rubygems.org mail is handled by 20 ziz.jijo.segment7.net.

I get the same result, i can ping and lookup the URL just fine, I just can't add it to my gem source list :-(

I just accurately tried again, and now I successfully added rubygems as a source. May just have been a network problem.


If not, try a full ruby reinstall as suggested here and check out your remote sources.

VonC
I was finally able to change the source, but now this problem occurs:C:\>gem install railsERROR: http://rubygems.org does not appear to be a repositoryERROR: could not find gem rails locally or in a repositoryBut,I think it will be solved by repeated efforts...Thanks.
Cody
@Apoorv: rubygems.org is down again? like in http://blog.angelbob.com/posts/285-http-rubygems-org-does-not-appear-to-be-a-repository---published-ruby? http://downforeveryoneorjustme.com/rubygems.org doesn't think so but if it was for you, see http://gist.github.com/429688
VonC