Unni Krishnan
2007-Jun-28 10:22 UTC
Gem installation Problem / Controller generation problem
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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Dear Unni, It may be worth it to go and read: http://www.railsdocumentation.org/getting_started_with_rails.pdf It is a work in progress, but it will help you out with getting started. Regards Mikel On Jun 28, 8:22 pm, Unni Krishnan <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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 > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
David Garton
2007-Jun-28 11:59 UTC
Re: Gem installation Problem / Controller generation problem
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 Install the downloaded gem via the command line: C:\My downloads\Ruby project>gem install rails -remote Mikel <raasdnil-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: Dear Unni, It may be worth it to go and read: http://www.railsdocumentation.org/getting_started_with_rails.pdf It is a work in progress, but it will help you out with getting started. Regards Mikel On Jun 28, 8:22 pm, Unni Krishnan wrote:> 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 > > -- > Posted viahttp://www.ruby-forum.com/.--------------------------------- No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
igrosny-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Jun-28 12:42 UTC
Re: Gem installation Problem / Controller generation problem
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 Krishnan <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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 > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---