Problem installing rails through gems on Windows XP behind a firewall

I am trying to install Ruby On Rails on my office computer which runs
Windows XP Professional Edition. I get this error:

C:\>gem install rails --remote
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
    Bad file descriptor - connect(2)(Errno::EBADF)


I suspect it is the firewall that is blocking the download because
I've had this at a previous office I worked at.

If I need to seek help from the IT support guys, who're not aware of
Rails and would not be able to figure out what the problem is, what
must I tell them to do precisely?


is this the NTLM proxy issue?

Try this:

set http_proxy=

and then do the gem install command. If you don't know what your
proxy URL and port numbers are try going to IE -> Tools -> Internet
Options -> Connections -> LAN Settings -> Proxy Server

You may see that a proxy server has been setup for you there. It may
be grayed out, you can click the "Use proxy server" to see the whole
address and port number. Just use this in your http_proxy environment
variable. The gem install will find the http_proxy env variable and
it will use that.

Hope that works!

If you're behind a firewall that requires NTLM, you might want to
-- or look for RubySSPI on RubyForge.