Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > how to solve xmlsimple.rb warning: already initialized const

Reply
Thread Tools

how to solve xmlsimple.rb warning: already initialized const

 
 
Johnroy World
Guest
Posts: n/a
 
      02-13-2009
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
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Johnroy World
Guest
Posts: n/a
 
      02-13-2009
up up up... i need help here

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Matt Williams
Guest
Posts: n/a
 
      02-13-2009
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/t..._warnings.html

Good Luck,
Matt



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
const vector<A> vs vector<const A> vs const vector<const A> Javier C++ 2 09-04-2007 08:46 PM
how to remove the warning: already initialized constant cap Ruby 1 04-15-2006 11:51 AM
ruby snapshot, FXRuby, and "already initialized constant" Joel VanderWerf Ruby 1 11-04-2004 08:51 PM
Compile error: 'identifier' : already initialized Marc W C++ 3 09-11-2003 10:38 AM



Advertisments