From: David Heinemeier Hansson Date: 2003-08-05T20:22:39+09:00 Subject: Re: Log4r and Ruby 1.8.0 in Singleton problems > For ruby > > require '/usr/local/lib/ruby/1.8/singleton.rb' > > is different (it think that it's another module) > > require 'singleton' # which is in repository.rb > > This is why it give an error Right. But the log4r.rbx doesn't contain any requirements to include the singleton module more than once. It's _only_ those three lines: require 'log4r' Log = Log4r::Logger.new("AC") Log.add Log4r::StderrOutputter.new 'console' ...and since those three lines work just fine in IRB, I suspect something fishy with mod_ruby. > Another reason is that you mix > * ruby 1.8.0 > * mod_ruby built with ruby 1.6.8 I didn't. Just double-checked it and even recompiled mod_ruby (1.1.1) and installed it again. It's surely ruby 1.8.0 and mod_ruby 1.1.1 compiled with the same version. (Thanks for the suggestions, though...) / David