How to solve xmlsimple.rb warning: already initialized const


#1

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


#2

up up up… i need help here


#3

On Fri, 2009-02-13 at 11:59 +0900, Johnroy W. 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_already_initialized_constant_warnings.html

Good Luck,
Matt