Forum: Ruby how to solve xmlsimple.rb warning: already initialized const

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8d69b5f4fcc146d704dbf514157f328a?d=identicon&s=25 Johnroy World (johnroyworld)
on 2009-02-13 04:00
hi all,

I am new to ruby on rails with ubuntu server and i got this warning
below in every time i run my script. Any advice would be appreciated.
Thanks!

/usr/lib/ruby/1.8/xmlsimple.rb:275: warning: already initialized
constant KNOWN_OPTIONS
/usr/lib/ruby/1.8/xmlsimple.rb:280: warning: already initialized
constant DEF_KEY_ATTRIBUTES
/usr/lib/ruby/1.8/xmlsimple.rb:281: warning: already initialized
constant DEF_ROOT_NAME
/usr/lib/ruby/1.8/xmlsimple.rb:282: warning: already initialized
constant DEF_CONTENT_KEY
/usr/lib/ruby/1.8/xmlsimple.rb:283: warning: already initialized
constant DEF_XML_DECLARATION
/usr/lib/ruby/1.8/xmlsimple.rb:284: warning: already initialized
constant DEF_ANONYMOUS_TAG
/usr/lib/ruby/1.8/xmlsimple.rb:285: warning: already initialized
constant DEF_FORCE_ARRAY
/usr/lib/ruby/1.8/xmlsimple.rb:286: warning: already initialized
constant DEF_INDENTATION
/usr/lib/ruby/1.8/xmlsimple.rb:287: warning: already initialized
constant DEF_KEY_TO_SYMBOL
8d69b5f4fcc146d704dbf514157f328a?d=identicon&s=25 Johnroy World (johnroyworld)
on 2009-02-13 05:37
up up up... i need help here
C3a0d479bd322818d766a7e869c6c5b2?d=identicon&s=25 Matt Williams (Guest)
on 2009-02-13 05:54
(Received via mailing list)
On Fri, 2009-02-13 at 11:59 +0900, Johnroy World wrote:
> hi all,
>
> I am new to ruby on rails with ubuntu server and i got this warning
> below in every time i run my script. Any advice would be appreciated.
> Thanks!
>

Seeing your script would help.  However, it looks as though you're
loading the same file multiple times (or the aggregate of your includes
are).

Also, have patience.  Sometimes it takes a while.

Have you tried google?  I searched for already initialized constant and
came up with the following, which seems to be talking about your exact
problem:

http://www.unwin.org/ruby_on_rails/tips/xml_simple...

Good Luck,
Matt
This topic is locked and can not be replied to.