Gem and/or YAML warnings

D

Daniel Berger

Hi,

Ruby 1.8.2
Rubygems 0.8.10
Syck 0.55
Solaris 10

I installed the dbi-dbrc package via gems. However, if I run this
simple script, I get a slew of warnings if I run with -d or -w:

# gemtest.rb
require "dbi/dbrc"

djberge@~/programming/ruby-645>ruby -w gemstest.rb
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
/usr/local/lib/ruby/site_ruby/1.8/yaml/types.rb:14: warning: method
redefined; discarding old initialize
/usr/local/lib/ruby/site_ruby/1.8/yaml/types.rb:29: warning: method
redefined; discarding old initialize
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri

I can get rid of them by doing "require 'rubygems'", followed by
"require_gem ... ", but I thought I should mention this.

Regards,

Dan
 
C

Chad Fowler

Hi,
=20
Ruby 1.8.2
Rubygems 0.8.10
Syck 0.55
Solaris 10
=20
I installed the dbi-dbrc package via gems. However, if I run this
simple script, I get a slew of warnings if I run with -d or -w:
=20
# gemtest.rb
require "dbi/dbrc"
=20
djberge@~/programming/ruby-645>ruby -w gemstest.rb
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):14: warning: redefine tag_subclasses?
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
/usr/local/lib/ruby/site_ruby/1.8/yaml/types.rb:14: warning: method
redefined; discarding old initialize
/usr/local/lib/ruby/site_ruby/1.8/yaml/types.rb:29: warning: method
redefined; discarding old initialize
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
(eval):2: warning: method redefined; discarding old taguri
=20
I can get rid of them by doing "require 'rubygems'", followed by
"require_gem ... ", but I thought I should mention this.
=20
Regards,
=20
Dan
=20
=20
=20

Dan, I can't reproduce this here on my Mac. Is it possible that when
you aren't doing require 'rubygems', etc. that you're picking up an
old version of dbi-dbrc on your system somewhere, and that the
warnings are coming from there?

Thanks....

--=20
Chad Fowler
http://chadfowler.com
http://rubycentral.org=20
http://rubygarden.org=20
http://rubygems.rubyforge.org (over 500,000 gems served!)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top