Error in executing "ruby script/server"

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!!!

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:[email protected]
http://www.dankohn.com/ tel:+1-415-233-1000

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

On 7/23/06, kaliem [email protected] 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