From: "Sandor Szücs" Date: 2009-02-25T05:35:23+09:00 Subject: Re: Ruby 1.8.6 Source and Debian Apt-Get Upgrades On 17.02.2009, at 17:39, subsorama@gmail.com wrote: > I upgraded my packages using apt-get yesterday and have found an > issue with my installed (source built) version of Ruby 1.8.6. I am > wondering if the update has interfered with my version of ruby as > some of my rails projects no longer load correctly. > > Error: > NoMethodError (undefined method `fdiv' for 0:Fixnum): > /usr/lib/ruby/1.8/yaml/rubytypes.rb:146:in `is_binary_data?' > /usr/lib/ruby/1.8/yaml/rubytypes.rb:165:in `to_yaml' > /usr/lib/ruby/1.8/yaml.rb:391:in `call' > /usr/lib/ruby/1.8/yaml.rb:391:in `emit' > /usr/lib/ruby/1.8/yaml.rb:391:in `quick_emit' > ... > > RubyGems Environment is I think still showing the right info: > - RUBYGEMS VERSION: 0.9.5 (0.9.5) > - RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [i686-linux] According to http://www.ruby-doc.org/core/classes/Fixnum.html there is no method called Fixnum#fdiv(). It seems that you have a yaml.rb of version 1.8.7. Try to reinstall your ruby version. Just a guess: maybe you have defined stable in /etc/apt/sources.list and debian changed the version "stable" from etch to lenny. IIRC then there are two possible fixes: 1) "apt-get dist-upgrade" 2) change the "stable" keywords to "etch" or "lenny" in /etc/apt/ sources.list hth. regards, Sandor Szücs --