And if even it is installed, it might not be in your standard library location, or might be too old of a version. From the README for XML::Parser:

This is a Perl extension interface to James Clark's XML parser, expat. It requires at least version 5.004 of perl and it requires that you have release 1.95.0 or greater of expat installed. You can download expat from:
http://sourceforge.net/projects/expat/

Of course, these sort of problems should have been caught in during the 'perl Makefile.PL' stage, as you'd have gotten a warning like:

Expat must be installed prior to building XML::Parser and I can't find it in the standard library directories. You can download expat from:
http://sourceforge.net/projects/expat/
If expat is installed, but in a non-standard directory, then use the following options to Makefile.PL:
EXPATLIBPATH=... To set the directory in which to find libexpat
EXPATINCPATH=... To set the directory in which to find expat.h
For example:
perl Makefile.PL EXPATLIBPATH=/home/me/lib EXPATINCPATH=/home/me/include
Note that if you build against a shareable library in a non-standard location you may (on some platforms) also have to set your LD_LIBRARY_PATH environment variable at run time for perl to find the library.

Of course, if you ran the make under sudo, and not the Makefile.PL, you might have different settings, which could present problems. I try to only run the 'make install' as root, and run Makefile.PL/make/make test as a non-root user. (if the program is going to be run as root, I'll sometimes also run 'make test' as root, because I've run into odd problems before, where it would pass the tests as root, or not root, but not both)


In reply to Re^2: Unable to install XML:Parser 2.34 on Aix w perl 5.8 by jhourcle
in thread Unable to install XML:Parser 2.34 on Aix w perl 5.8 by haramikutta

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.