# Issue in installing Rail

**URL:** <https://www.ruby-forum.com/t/issue-in-installing-rail/92931>\
**Category:** Rails\
**Created:** [April 25, 2007, 8:09pm UTC](https://www.ruby-forum.com/t/issue-in-installing-rail/92931 "2007-04-25T20:09:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mekhiya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/aeb1de/32.png) [@Mekhiya](https://www.ruby-forum.com/u/Mekhiya)\
**Post date:** [April 25, 2007, 8:09pm UTC](https://www.ruby-forum.com/t/issue-in-installing-rail/92931/1 "2007-04-25T20:09:47Z")

</div>

hi there!  
i have been trying to set up Rail env on my work local machine[windows  
xp].  
Ruby got installed, but when i try step:

gem install rails --remote

It gives me an error,

ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)  
Bad file descriptor - connect(2)(Errno::EBADF)

I tried searching on internet and found people talking abt several  
things,

1. mysql port issue
2. proxy restrictions
3. dont use webrick, instead use mongreal.

Can someone please tell me how do i fix this issue and get stated with  
some code on ruby.  
And also is there any better tool/framework version which I am missing  
to use.

-N

---

<div class="post-metadata">

**Author:** ![Mekhiya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/aeb1de/32.png) [@Mekhiya](https://www.ruby-forum.com/u/Mekhiya)\
**Post date:** [April 25, 2007, 8:17pm UTC](https://www.ruby-forum.com/t/issue-in-installing-rail/92931/2 "2007-04-25T20:17:06Z")

</div>

Mekhiya wrote:

> ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)  
> Bad file descriptor - connect(2)(Errno::EBADF)
> 
> I tried searching on internet and found people talking abt several  
> things,
> 
> 1. mysql port issue
> 2. proxy restrictions
> 3. dont use webrick, instead use mongreal.

It seems that the problem is likely to be #2 since you are not being  
able to install the Rails gems. If this is just a development platform  
to play with Rails, try to get InstantRails. It’s a 1-package, no  
modifications required package that just works. Note that it is a big  
download.

Otherwise, do a search on how to manage the proxy issue - I haven’t used  
it, so I don’t remember.  
Cheers  
Mohit.
