To elaborate a little ... during the Makefile.PL stage you should see a message that tells you to start the build process with
perl Makefile.PL EXPATLIBPATH=/home/me/lib EXPATINCPATH=/home/me/include when libexpat is not found. (This is assuming that libexpat is in /home/me/lib and expat.h is in /home/me/include ... modify as necessary.)
I personally prefer to take a different approach with the appalling Makefile.PL that ships with the XML::Parser source distro - I simply replace it with a Makefile.PL that contains:
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'XML::Parser',
VERSION_FROM => 'Parser.pm',
PREREQ_PM => {
LWP => 0, #for tests
}
);
If the expat library is in a location that EU::MM finds by default, then it's just a matter of starting with
perl Makefile.PL.
Otherwise, we have to run
perl Makefile.PL LIBS=-L/home/me/lib INC=-I/home/me/include (again, modify those paths as necessary).
Why the author insists on putting so much unnecessary crud (that doesn't even work properly !) into his Makefile.PL is completely and utterly beyond my comprehension.
Cheers,
Rob
Update: I think I was mistaken about my simplified Makefile.PL working when libexpat is not found by default. (I think some other modifications to either the top level Makefile.PL or Expat/Makefile.PL are also needed.)
Probably simplest to just use the original Makefile.PL and go with the EXPATINCPATH/EXPATLIBPATH kludge when libexpat is not found by default.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.