开发者

Problem in Ruby Gems Source Installation

I get the following error while performing the following commmand of adding rubygems.orgs as the gem source. I am having Windows 开发者_如何学CXP.

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


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.


If anyone gets this on a linux box the solution I found was to use one of Google's nameservers in my /etc/resolv.conf file.

nameserver 8.8.8.8

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜