File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ruby and the fly likes Installing Rails Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Installing Rails Issue" Watch "Installing Rails Issue" New topic

Installing Rails Issue

Scott Updike
Ranch Hand

Joined: Feb 16, 2006
Posts: 92
I'm trying to evaluate if Ruby can be used on one of my smaller projects and am running into an error that I can't seem to overcome. I first installed Ruby by going to the site and downloading the one click installer for Windows. After installing Ruby, I confirmed everything looked good since I was able to create a small set of scripts and run them successfully. However, when I try and install Rails, by typing "gem install rails --include-dependencies" I get the following error:
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
bad file descriptor - connect(2)(Errorno::EBADF)

Anyone have any ideas?

Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
Quick Googling led me to a few pages that recommend setting the environment variable "http-proxy" before invoking gem install:

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: Installing Rails Issue
Similar Threads
ERROR: Error installing mongrel
Fed Up Installing Rails.... How Do I Get Rid Of The Dependencies?
How to install "Fast Debugger" using Netbeans as IDE for Ruby?
Can't start with Ruby on Windows