Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Re: XML::Simple and use lib

by thraxil (Prior)
on Aug 16, 2002 at 20:28 UTC ( #190744=note: print w/replies, xml ) Need Help??


in reply to Re: Re: XML::Simple and use lib
in thread XML::Simple and use lib

if you don't have access to your error logs and XMLin() seems to be where it's dieing, maybe try something like:

print $q->header(); my $xml; eval { $xml = XMLin("$name.xml", searchpath => ['users']); }; if($@) { print "the error was: <pre>$@</pre>"; } else { print "no error was generated."; }

anders pearson

Replies are listed 'Best First'.
Re: Re: Re: Re: XML::Simple and use lib
by BioHazard (Pilgrim) on Aug 17, 2002 at 11:16 UTC
    Hallo thraxil!

    Thank you for your help, and of course I thank all of you.
    With eval() I was now able to know WHAT exactly failed. And that's the output:

    the error was: 
    XML::Parser::Expat object version 2.30 does not match bootstrap parameter 2.27 at /usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 225.
    Compilation failed in require at /www/htdocs/v028502/cgi-bin/Modules/XML/Parser.pm line 15.
    BEGIN failed--compilation aborted at /www/htdocs/v028502/cgi-bin/Modules/XML/Parser.pm line 27.
    Compilation failed in require at /www/htdocs/v028502/cgi-bin/Modules/XML/Simple.pm line 224.


    Now I'm going to read through the module-lines failed in the execution.
    Does anyone have an idea what is ment by "bootstrap parameter" ? Sorry about my little knowledge.
      It looks to me like you have a copy of XML::Parser in your Modules directory and the system already has one installed under /usr/lib. Your one is broken - simply delete it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://190744]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2022-10-01 08:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (126 votes). Check out past polls.

    Notices?