# Error in executing "ruby script/server"

**URL:** <https://www.ruby-forum.com/t/error-in-executing-ruby-script-server/99529>\
**Category:** Rails\
**Created:** [July 23, 2006, 8:59pm UTC](https://www.ruby-forum.com/t/error-in-executing-ruby-script-server/99529 "2006-07-23T20:59:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaliem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/c5a1d2/32.png) [@kaliem](https://www.ruby-forum.com/u/kaliem)\
**Post date:** [July 23, 2006, 8:59pm UTC](https://www.ruby-forum.com/t/error-in-executing-ruby-script-server/99529/1 "2006-07-23T20:59:46Z")

</div>

Hi all, Somebody please advice me what should i do:

I installed instant rails and i executed the command “\*ruby  
script/server” \*sucessfully  
for the first time

the next time, when i tried to execute the same command, it gave me the  
error : “Cannot find Gem for rails =1.1.2: Install the missing Gem with  
‘Gem  
install -v=1.1.2 rails’ or change your Environment.rb to defined  
RAIL\_GEM\_VERSION with your desired version”

the other problem is: when i execute ‘Gem install -v=1.1.2 rails’ , it  
gives  
error message: “ERROR:While executing gem … (Errno::EBADF) Bad File  
descripor - connect (2)”

Waiting for reply and thanks in advance!!!

---

<div class="post-metadata">

**Author:** ![kaliem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/c5a1d2/32.png) [@kaliem](https://www.ruby-forum.com/u/kaliem)\
**Post date:** [July 23, 2006, 11:45pm UTC](https://www.ruby-forum.com/t/error-in-executing-ruby-script-server/99529/2 "2006-07-23T23:45:43Z")

</div>

You’re trying to use a rails app that has been tied to a specific  
version of Rails (1.1.2 in your case, when you have probably  
installed 1.1.4). Simplest solution is to find the line calling out  
that version in config/envrionment.rb and comment it out with a #.

```
        - dan

```

–  
Dan K. [mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://www.dankohn.com/](http://www.dankohn.com/)tel:+1-415-233-1000

---

<div class="post-metadata">

**Author:** ![kaliem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/c5a1d2/32.png) [@kaliem](https://www.ruby-forum.com/u/kaliem)\
**Post date:** [July 23, 2006, 9:09pm UTC](https://www.ruby-forum.com/t/error-in-executing-ruby-script-server/99529/3 "2006-07-23T21:09:27Z")

</div>

Hi again, please advice this as well if you have experienced the same  
problem.

I tried to installed complete Ruby and Rails. First, I installed Ruby  
windows one click installer, then i installed MySQL , but when i  
tried installing Rails by issuing this command: \*gem install rails  
–include-dependencies , \*it gave me error like “ERROR:While executing  
gem  
… (Errno::EBADF) Bad File descripor - connect (2)”

Anybody to advice what should i do? and if you know the solution, please  
reply at earliest as i need it in hurry!!! Thanks

---

<div class="post-metadata">

**Author:** ![kaliem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/c5a1d2/32.png) [@kaliem](https://www.ruby-forum.com/u/kaliem)\
**Post date:** [July 24, 2006, 6:05am UTC](https://www.ruby-forum.com/t/error-in-executing-ruby-script-server/99529/4 "2006-07-24T06:05:22Z")

</div>

On 7/23/06, kaliem [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Anybody to advice what should i do? and if you know the solution, please  
> reply at earliest as i need it in hurry!!! Thanks

This can happen if you are not connected to the internet.

If you are connected but still get this then you might be behind a  
firewall/proxy-server. If so you need to tell the gem command the  
address  
and port of your proxy server. I don’t remember the option you need to  
use,  
you’ll have to look it up (or maybe someone else remembers).

Curt
