Rails Installation Issue

Hi all,

Am through with the installation of Ruby and RubyGems.

For installing Rails, am typing ‘gem install rails
–include-dependencies’ in the command prompt (as per the steps provided
in the URL - http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html).

However, the following error is being encountered:

ERROR: While executing gem … (SocketError)
getaddrinfo: no address associated with hostname

Any pointers how to bypass it?

Thanks in advance.

Regards,
Nikhil

Nikhil Mahajan wrote:

Hi all,

Am through with the installation of Ruby and RubyGems.

For installing Rails, am typing ‘gem install rails
–include-dependencies’ in the command prompt (as per the steps provided
in the URL - Radar – O’Reilly).

However, the following error is being encountered:

ERROR: While executing gem … (SocketError)
getaddrinfo: no address associated with hostname

Thats a pretty basic (by which I mean ‘low level’, not ‘obvious’) error.

RubyGems is unable to access the internet. It can’t even get DNS access
to translate a name into an ip address.

The usual cause of this is being on windows and not setting the
HTTP_PROXY environment variable. Are you on WIndows ? DO you use a
proxy in your web browser ? Have you set this in your command prompt ?

HTH,

Alan