Ruhul Amin
2008-Jul-05 03:43 UTC
undefined method `require_gem'' for main:Object (NoMethodErro
Hi guys, In my fedora 9 system i have installed ruby 1.86, actionmailer (2.1.0) actionpack (2.1.0) activerecord (2.1.0) activeresource (2.1.0) activesupport (2.1.0) cgi_multipart_eof_fix (2.5.0) daemons (1.0.10) fastthread (1.0.1) gem_plugin (0.2.3) mongrel (1.1.5) rails (2.1.0) rake (0.8.1) rubygems-update (1.2.0) sources (0.0.1) But while creating a test rails application it shows the problem [root@localhost bin]# rails testapp /usr/bin/rails:17: undefined method `require_gem'' for main:Object (NoMethodError) Please give a idea to solve that. Eros -- 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Jul-05 10:46 UTC
Re: undefined method `require_gem'' for main:Object (NoMethodErro
On Jul 5, 4:43 am, Ruhul Amin <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > But while creating a test rails application it shows the problem > [root@localhost bin]# rails testapp > /usr/bin/rails:17: undefined method `require_gem'' for main:Object > (NoMethodError)It sounds like /usr/bin/rails (which is really just a stub that loads some gems) is really old (or created by an old version of rubygems). I''d try deleting it and reinstalling. Fred> > Please give a idea to solve that. > > Eros > -- > 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---