OK.. Here's what I found when I made a quick search:

The first thing, of course, is that you need to install expat first - and I suppose you already did that.
The default installation procedure for the expat library is:

./configure
make
make install

However, be aware that this will install the expat library files in /usr/local rather than /usr. If you then go to install the XML::Parser library, the make will fail due to an

#include <expat.h>

statement with Expat.xs. The reason for this is that expat.h has been installed in /usr/local/include rather than /use/include.

When running the expat install, run the expat configure script with the --prefix=/usr; this should ensure that the various expat library components get installed in /usr where XML::Parser expects them to be.
There was also this cpan link that would provide you with some extra information.

Hope this helps.
All the best!

"True!"
SRK.

In reply to Re: Installing XML Module in Alternate Directory by rupesh
in thread Installing XML Module in Alternate Directory by roho

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.