srinivas_47 has asked for the wisdom of the Perl Monks concerning the following question:

i am trying to run a script under activestate perl 5.8.8..when i run the script it is giving the following error XML::Parser::Expat object version 2.34 does not match bootstrap parameter 2.27 a t C:/Perl/lib/DynaLoader.pm line 253. Compilation failed in require at C:/Perl/site/lib/XML/Parser.pm line 15. BEGIN failed--compilation aborted at C:/Perl/site/lib/XML/Parser.pm line 27. Compilation failed in require at C:/Perl/site/lib/XML/Simple.pm line 224. Any help on this is very much helpful..

Replies are listed 'Best First'.
Re: script error 'expat object version..'
by Cabrion (Friar) on Nov 22, 2006 at 00:49 UTC
    Sounds like you upgraded the Expat library without recompliing the perl module. The library version has to match the one against which the perl module was compiled.

    I'm guessing you installed the perl module with ppm and the expat library separtely.

    See if there is an updated perl module or downgrade expat.

    Then again, I could be off base :(

Re: script error 'expat object version..'
by syphilis (Archbishop) on Nov 22, 2006 at 01:11 UTC
    It's a botched XML-Parser install. Looks like the perl part (perl/site/lib/XML/Parser.pm) is version 2.27, but the object (perl/site/lib/auto/XML/Parser/Expat/Expat.dll) is version 2.34. They need to match - and if XML::Parser is properly installed, they should match.

    Cheers,
    Rob