# Gem installation Problem / Controller generation problem

**URL:** <https://www.ruby-forum.com/t/gem-installation-problem-controller-generation-problem/108011>\
**Category:** Rails\
**Created:** [June 28, 2007, 12:22pm UTC](https://www.ruby-forum.com/t/gem-installation-problem-controller-generation-problem/108011 "2007-06-28T12:22:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![unnikrishnanes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/ce73a5/32.png) [@unnikrishnanes](https://www.ruby-forum.com/u/unnikrishnanes)\
**Post date:** [June 28, 2007, 12:22pm UTC](https://www.ruby-forum.com/t/gem-installation-problem-controller-generation-problem/108011/1 "2007-06-28T12:22:20Z")

</div>

I am new to ROR.

I Have ruby and instant rails installed in my system(I am using  
Windows). I have created an application ‘railslist’  
[command i used:- c:\development\rails railslist]

But when I tried to generate a controller  
[c:\development\railslist\ruby script/generate controller App] I got  
the following error

* * *

Cannot find gem for Rails ~\>1.2.3.0:  
Install the missing gem with ‘gem install -v=1.2.3 rails’, or  
change environment.rb to define RAILS\_GEM\_VERSION with your desired  
version.

* * *

Actually my gem version is 0.9.2 which i knew using the command ‘gem -v’

and i tried ‘gem install rails --include-dependencies’ too and got  
another error as follows

* * *

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

* * *

I dont know wht the problem could be…

Please help

---

<div class="post-metadata">

**Author:** ![unnikrishnanes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/ce73a5/32.png) [@unnikrishnanes](https://www.ruby-forum.com/u/unnikrishnanes)\
**Post date:** [June 28, 2007, 1:45pm UTC](https://www.ruby-forum.com/t/gem-installation-problem-controller-generation-problem/108011/2 "2007-06-28T13:45:13Z")

</div>

Dear Unni,

It may be worth it to go and read:

> **[Resume Builder](https://resumebuild.com/)**
>
> RESUME BUILDER Online. Impressive Resumes Made Easy! Get hired with the professional Resume Builder that will make you stand out from the crowd! Start Now!

It is a work in progress, but it will help you out with getting  
started.

Regards

Mikel

On Jun 28, 8:22 pm, Unni K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![unnikrishnanes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/ce73a5/32.png) [@unnikrishnanes](https://www.ruby-forum.com/u/unnikrishnanes)\
**Post date:** [June 28, 2007, 2:00pm UTC](https://www.ruby-forum.com/t/gem-installation-problem-controller-generation-problem/108011/3 "2007-06-28T14:00:15Z")

</div>

These are my notes for installing rails, maybe something in there will  
help:

Try: C:\>gem install rails --include-dependencies  
or: C:\>gem install rails -remote (answer “y” to  
all five questions)  
If they both fail, download the latest rails.gem file from  
[http://rubyforge.org/frs/?group\_id=307](http://rubyforge.org/frs/?group_id=307)  
Install the downloaded gem via the command line: C:\My  
downloads\Ruby project\>gem install rails -remote

Mikel [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

Dear Unni,

It may be worth it to go and read:

> **[Resume Builder](https://resumebuild.com/)**
>
> RESUME BUILDER Online. Impressive Resumes Made Easy! Get hired with the professional Resume Builder that will make you stand out from the crowd! Start Now!

It is a work in progress, but it will help you out with getting  
started.

Regards

Mikel

On Jun 28, 8:22 pm, Unni K.  
wrote:

> * * *
> 
> another error as follows
> 
> –  
> Posted viahttp://www.ruby-forum.com/.

* * *

No need to miss a message. Get email on-the-go  
with Yahoo! Mail for Mobile. Get started.

---

<div class="post-metadata">

**Author:** ![unnikrishnanes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/ce73a5/32.png) [@unnikrishnanes](https://www.ruby-forum.com/u/unnikrishnanes)\
**Post date:** [June 28, 2007, 2:43pm UTC](https://www.ruby-forum.com/t/gem-installation-problem-controller-generation-problem/108011/4 "2007-06-28T14:43:25Z")

</div>

You probably knew about it, but if you are newbie just like me you  
should install InstantRails (unless you want it the “hard” way).  
hope it help

On Jun 28, 7:22 am, Unni K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
