Rolling Ruby, Rails, etc on a Powerbook (OSX 10.4). I''ve had a successful install for many months, and then I upgraded Ruby to 1.8.6 and used gem to update Rails to 2.0.2. Upon install, Rails stopped working and threw a whole series of errors. I updated rubygem and the errors went away (except for one), and rails started working again. That error: /usr/local/bin/rails:17:Warning: require_gem is obsolete. Use gem instead. Exciting stuff. But that''s not really the issue. When I use gem now, I get this: Antimatter:~ js$ sudo gem update Updating installed gems... ERROR: While executing gem ... (NoMethodError) undefined method `refresh'' for #<Hash:0x137084c> I get this error regardless of the command I use for gem (install, update, etc.) I mean, at least rails is working now, but does anybody have any insight as to how I can fix this situation? I haven''t done anything particularly wonky... and I have zero clue as to how I can fix this. Advice is very much appreciated! -- 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 -~----------~----~----~----~------~----~------~--~---
My guess is that in config/boot.rb you''ve got a couple legacy lines that have ''require_gem'' in them. Change those to just ''gem'' and try again. Jose Sierra wrote:> Rolling Ruby, Rails, etc on a Powerbook (OSX 10.4). I''ve had a > successful install for many months, and then I upgraded Ruby to 1.8.6 > and used gem to update Rails to 2.0.2. > > Upon install, Rails stopped working and threw a whole series of errors. > I updated rubygem and the errors went away (except for one), and rails > started working again. > > That error: /usr/local/bin/rails:17:Warning: require_gem is obsolete. > Use gem instead. > > Exciting stuff. But that''s not really the issue. When I use gem now, I > get this: > > Antimatter:~ js$ sudo gem update > Updating installed gems... > ERROR: While executing gem ... (NoMethodError) > undefined method `refresh'' for #<Hash:0x137084c> > > I get this error regardless of the command I use for gem (install, > update, etc.) I mean, at least rails is working now, but does anybody > have any insight as to how I can fix this situation? I haven''t done > anything particularly wonky... and I have zero clue as to how I can fix > this. > > Advice is very much appreciated! >-- http://www.5valleys.com/ http://www.workingwithrails.com/person/8078 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jon Garvin wrote:> My guess is that in config/boot.rb you''ve got a couple legacy lines that > have ''require_gem'' in them. Change those to just ''gem'' and try again. > > -- > http://www.5valleys.com/ > http://www.workingwithrails.com/person/8078This also happens when I just type "rails *projectname*"... is there a global configuration that I can modify to take out the legacy lines? -- 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 -~----------~----~----~----~------~----~------~--~---
Jose Sierra wrote:> Jon Garvin wrote: > >> My guess is that in config/boot.rb you''ve got a couple legacy lines that >> have ''require_gem'' in them. Change those to just ''gem'' and try again. >> >> -- >> http://www.5valleys.com/ >> http://www.workingwithrails.com/person/8078 >> > > This also happens when I just type "rails *projectname*"... is there a > global configuration that I can modify to take out the legacy lines? >Hmmm, "rails projectname" gives me a correct 2.0.2 boot.rb. Try ''rails -v'' to see what version you get. -- http://www.5valleys.com/ http://www.workingwithrails.com/person/8078 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jon Garvin wrote:> Hmmm, "rails projectname" gives me a correct 2.0.2 boot.rb. Try ''rails > -v'' to see what version you get. > > -- > http://www.5valleys.com/ > http://www.workingwithrails.com/person/8078Antimatter:~ js$ rails -v /usr/local/bin/rails:17:Warning: require_gem is obsolete. Use gem instead. Rails 2.0.2 -- 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 -~----------~----~----~----~------~----~------~--~---
Jose Sierra wrote:> Antimatter:~ js$ rails -v > /usr/local/bin/rails:17:Warning: require_gem is obsolete. Use gem > instead. > Rails 2.0.2 >Ok, I wasn''t expecting that. I don''t think I''m going to be much more help. -- http://www.5valleys.com/ http://www.workingwithrails.com/person/8078 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jon Garvin wrote:>> > Ok, I wasn''t expecting that. I don''t think I''m going to be much more > help. > > -- > http://www.5valleys.com/ > http://www.workingwithrails.com/person/8078LOL, yeah, I''m pretty stymied too... -- 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 -~----------~----~----~----~------~----~------~--~---
Whats your gem version? Maybe try sudo gem update - -system, On Jan 31, 8:16 pm, Jose Sierra <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Jon Garvin wrote: > > > Ok, I wasn''t expecting that. I don''t think I''m going to be much more > > help. > > > -- > >http://www.5valleys.com/ > >http://www.workingwithrails.com/person/8078 > > LOL, yeah, I''m pretty stymied too... > -- > 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 -~----------~----~----~----~------~----~------~--~---
apremdas wrote:> Whats your gem version?0.9.2> Maybe try sudo gem update - -system,Antimatter:~ js$ sudo gem update --system Updating RubyGems... ERROR: While executing gem ... (NoMethodError) undefined method `refresh'' for #<Hash:0x1370568> -- 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 -~----------~----~----~----~------~----~------~--~---
Jose Sierra wrote:> apremdas wrote: >> Whats your gem version? > > 0.9.2 > >> Maybe try sudo gem update - -system, > > Antimatter:~ js$ sudo gem update --system > Updating RubyGems... > ERROR: While executing gem ... (NoMethodError) > undefined method `refresh'' for #<Hash:0x1370568>Bump. Anybody got any ideas? -- 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 -~----------~----~----~----~------~----~------~--~---
Maybe try installing latest version of gem from the source. Otherwise I''m out of ideas - hope you get lucky :) On Jan 31, 9:50 pm, Jose Sierra <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> apremdas wrote: > > Whats your gem version? > > 0.9.2 > > > Maybe try sudo gem update - -system, > > Antimatter:~ js$ sudo gem update --system > Updating RubyGems... > ERROR: While executing gem ... (NoMethodError) > undefined method `refresh'' for #<Hash:0x1370568> > > -- > 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 -~----------~----~----~----~------~----~------~--~---