When I run rake i get '' undefined method `require_gem'''' Here''s my setup: ruby:ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-freebsd6] rails: 2.0.2 gem:1.0.1 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Is this on a brand new Rails app? Any plugins? require_gem was deprecated and I assume it was removed, so one of your plugins or your Rails app is still calling it somewhere. If you built this app on a previous version of rails, then some of the initialization scripts may contain require_gem as well. On Jan 10, 2008 1:09 PM, blinking bear <blinkingbear-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> When I run rake i get '' undefined method `require_gem'''' > > Here''s my setup: > > ruby:ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-freebsd6] > rails: 2.0.2 > gem:1.0.1 > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thansk Brian. Turns out it was actually Rake that needed updating On Jan 10, 2008 2:21 PM, Brian Hogan <bphogan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is this on a brand new Rails app? > > Any plugins? > > require_gem was deprecated and I assume it was removed, so one of your > plugins or your Rails app is still calling it somewhere. If you built this > app on a previous version of rails, then some of the initialization scripts > may contain require_gem as well. > > > On Jan 10, 2008 1:09 PM, blinking bear <blinkingbear-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > When I run rake i get '' undefined method `require_gem'''' > > > > Here''s my setup: > > > > ruby:ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-freebsd6] > > rails: 2.0.2 > > gem:1.0.1 > > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I have the same error. - Undefined method require_gems. How do I update rake? -- 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 -~----------~----~----~----~------~----~------~--~---
How about: gem update rake I ran into this as well when I updated gems - all of the old gems commands such as rails and rake were broken. On Feb 15, 11:57 am, Mo Ku <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I have the same error. - Undefined method require_gems. How do I update > rake? > > -- > 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 -~----------~----~----~----~------~----~------~--~---
Chad Lester wrote:> How about: > gem update rake > > I ran into this as well when I updated gems - all of the old gems > commands such as rails and rake were broken.I thought of that one. Problem ... gem broke with everything else. When I run gem update rake I get /usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError) -- 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 -~----------~----~----~----~------~----~------~--~---
Michael Satterwhite
2008-Feb-21 03:13 UTC
Re: undefined method `require_gem'' *SOLVED* (I think)
Chad Lester wrote:> How about: > gem update rake >This - along with the info that things may have been installed in the wrong places gave me a clue that appears to have fixed things. Obviously, gem *HAD* been working. I used find to locate another version of "gem" on my system. I backed up the one that was executing (as reported by "which"), then created a symlink to the other one. Then I could run gem I then used gem to update rake and rails. It appears that everything is working now. Interesting. -- 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 -~----------~----~----~----~------~----~------~--~---