FileUtils/ActiveRecord help please?

Does anybody know how to make FileUtils and ActiveRecord coexist? Every
attempt I have made results in errors like those quoted below.

[belladonna-grr] ~ <0> irb
irb(main):001:0> require ‘rubygems’
=> true
irb(main):002:0> require ‘fileutils’
=> true
irb(main):003:0> include FileUtils
=> Object
irb(main):004:0> require_gem ‘activerecord’
=> true
irb(main):005:0> Fileutils.copy(“h1”, “h2”)
/usr/local/lib/ruby/1.8/fileutils.rb:93: warning: already initialized
constant OPT_TABLE
/usr/local/lib/ruby/1.8/fileutils.rb:1146: warning: already initialized
constant S_IF_DOOR
/usr/local/lib/ruby/1.8/fileutils.rb:1447: warning: already initialized
constant METHODS
NameError: undefined method options' for classModule’
from /usr/local/lib/ruby/1.8/fileutils.rb:1517:in public' from /usr/local/lib/ruby/1.8/fileutils.rb:1517 from /usr/local/lib/ruby/1.8/fileutils.rb:1516 from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:inload’
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:56:in
require_or_load' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:30:independ_on’
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in
require_dependency' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:98:inconst_missing’
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in
`const_missing’
from (irb):5

Thanks,

Ken

I use the words you taught me. If they don’t mean anything any more,
teach me others. Or let me be silent.
Samuel Beckett (Clov, Endgame)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs