Can't load Expat.so for module XML::Parser::Expat: dynamic linker : perl: error opening libexpat.so.0 at DynaLoader.pm line 168

...at Parser.pm line 15 Begin failed - compilation aborted...

Could any enlightened monk help me understand what this error message means?


Yes.

Now I suppose you'll actually want to know what it means. :-) It means you need to install Expat. You can find it here... then since you're in Unix, unzip it, untar it, and follow the very simple instructons in README. I would imagine one would do something similar under Windows.

Actually, you should try installing your modules with CPAN.pm. You do such things by issuing the command:

perl -MCPAN -e shell

On my system (Debian), there's a script called cpan to simplify things. Type perldoc CPAN for details.

CPAN checks for such dependencies, and would not (willingly) have installed XML for you without it. Instead, it would have given you some helpful instructions on installing Expat.


In reply to XML needs Expat by Petruchio
in thread XML Module Loading Problem by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.