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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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
It's not a secret anymore!