I''ve been trying to update Rails on two Win2k boxes, each running the latest release of the the Ruby 1.8.2 1-click. On both machines, when I run gem install rails I get an error when it tries to install actionmailer. Attempting remote installation of ''rails'' Install required dependency activesupport? [Yn] Y Install required dependency activerecord? [Yn] Y Install required dependency actionpack? [Yn] Y Install required dependency actionmailer? [Yn] Y ERROR: While executing gem ... (NoMethodError) undefined method `serialize'' for CGI::Session::ActiveRecordStore::Session:Class This (or something similar) has happened on each previous Rails update; each time I''ve been told to delete old copies of actionmailer. It helped in the past (but did nothing to stop it for the next time). It didn''t help this time. What is solution? Thanks, James c:\>ruby -v ruby 1.8.2 (2004-12-25) [i386-mswin32] c:\>gem -v c:\>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" -v 0.8.3
Hi! On Sat, 26 Feb 2005, James Britt wrote the following:> I''ve been trying to update Rails on two Win2k boxes, each running the > latest release of the the Ruby 1.8.2 1-click.I have no problems here with a WinXP box with the same Ruby setup, did you try "gem update rails"? ^^^^^^^^ -------- Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\rails>gem update rails -s http://gems.rubyonrails.com C:\rails>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" update rails -s http://gems.rubyonrails.com Upgrading installed gems... Updating Gem source index for: http://gems.rubyonrails.com Attempting remote upgrade of actionmailer Attempting remote installation of ''actionmailer'' Install required dependency actionpack? [Yn] Install required dependency activesupport? [Yn] Successfully installed actionmailer, version 0.7.0 Installing RDoc documentation for actionmailer-0.7.0... Installing RDoc documentation for actionpack-1.5.0... Installing RDoc documentation for activesupport-1.0.0... Attempting remote upgrade of actionpack Attempting remote installation of ''actionpack'' Successfully installed actionpack, version 1.5.0 Installing RDoc documentation for actionpack-1.5.0... Attempting remote upgrade of activerecord Attempting remote installation of ''activerecord'' Successfully installed activerecord, version 1.7.0 Installing RDoc documentation for activerecord-1.7.0... Attempting remote upgrade of rails Attempting remote installation of ''rails'' Install required dependency actionwebservice? [Yn] Successfully installed rails, version 0.10.0 Installing RDoc documentation for rails-0.10.0... WARNING: Generating RDoc on .gem that may not have RDoc. Installing RDoc documentation for actionwebservice-0.5.0... All gems up to date C:\rails>ruby -v ruby 1.8.2 (2004-12-25) [i386-mswin32] C:\rails>gem -v C:\rails>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" -v 0.8.3 -------- bye Wolfgang
Wolfgang Klinger wrote:> Hi! > > On Sat, 26 Feb 2005, James Britt wrote the following: > >>I''ve been trying to update Rails on two Win2k boxes, each running the >>latest release of the the Ruby 1.8.2 1-click. > > > I have no problems here with a WinXP box with the same Ruby setup, > did you try "gem update rails"?Please, I wish people would understand this: that command updates *all* gems, not just rails. It is a *bad* general suggestion as a way to install or update a specific gem. It is unfortunate it was ever offered as a way to update Rails. The current version of gems ignores the last argument, so it runs "gem update" I''ve also update gems to 0.8.4, but it makes no difference. And, for the record, yes I *did* try "gem update rails" (knowing that all gems would get updated; I was fine with that). No help. At this point I''m heading towards installing from zip file, which seems quite cheesy. Thanks, James