I started following the instructions on RailsRocket to migrate to Rails 2.0. I entered the following commands (as root): gem install rails -y gem update --system The two commands seemed to work correctly, but for all intents and purposes, everything is now broken, and I could go no further. If I issue any rake command, I get: /usr/bin/rake:17: undefined method `require_gem'' for main:Object (NoMethodError) If I issue a rails command, I get /usr/bin/rake:17: undefined method `require_gem'' for main:Object (NoMethodError) If I issue a gem command I get: /usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError) Can anyone offer some help on how to recorver? Thanks in advance ---Michael -- 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 -~----------~----~----~----~------~----~------~--~---
are you on debian/ubuntu? On 20 фев, 20:10, Michael Satterwhite <rails-mailing-l...@andreas- s.net> wrote:> I started following the instructions on RailsRocket to migrate to Rails > 2.0. I entered the following commands (as root): > > gem install rails -y > gem update --system > > The two commands seemed to work correctly, but for all intents and > purposes, everything is now broken, and I could go no further. > > If I issue any rake command, I get: > /usr/bin/rake:17: undefined method `require_gem'' for main:Object > (NoMethodError) > > If I issue a rails command, I get > /usr/bin/rake:17: undefined method `require_gem'' for main:Object > (NoMethodError) > > If I issue a gem command I get: > /usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError) > > Can anyone offer some help on how to recorver? > > Thanks in advance > ---Michael > -- > 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 -~----------~----~----~----~------~----~------~--~---
lq wrote:> are you on debian/ubuntu? >Ubuntu (feisty) -- 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 -~----------~----~----~----~------~----~------~--~---
I''ve asked because I had same problem on debian. gem update --system uploaded files to different location, than apt-get did, so some files were updated, while others kept obsolete. After working on the problem a bit, I wiped out ruby (it was 1.8.5 and no newer version, even in testing repository) and gems completely and compiled everything from the sources. No more problems I''ve got. However, I''d suggest adding require ''rubygems/gem_runner'' to /usr/bin/ gem and run ''gem update'' before going my way. On 20 фев, 21:47, Michael Satterwhite <rails-mailing-l...@andreas- s.net> wrote:> lq wrote: > > are you on debian/ubuntu? > > Ubuntu (feisty) > -- > 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 -~----------~----~----~----~------~----~------~--~---