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

Hello monks,

I'm trying to install XML::Parser with 'perl -MCPAN -e shell' command 'install XML::Parser'. However it fails to build it. Error messages seem to stem from this

/usr/bin/perl /usr/share/perl/5.8.4/ExtUtils/xsubpp -noprototypes -typ +emap /usr/share/perl/5.8/ExtUtils/typemap -typemap typemap Expat.xs +> Expat.xsc && mv Expat.xsc Expat.c cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-s +trict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSE +T_BITS=64 -O2 -DVERSION=\"2.34\" -DXS_VERSION=\"2.34\" -fPIC "-I/us +r/lib/perl/5.8/CORE" Expat.c Expat.xs:12:19: expat.h: No such file or directory
What should I do to get this installed? AFAIK the expat stuff comes with the XML package. Thanks.

Replies are listed 'Best First'.
Re: Installing XML::Parser
by Corion (Patriarch) on Jun 30, 2005 at 10:42 UTC

    Hello Hena,
    no, the expat stuff does not come with the XML package. You will need to either hunt down the existing installation of expat (libexpat.so maybe, plus the necessary headers) on your machines, or download, compile and install expat itself yourself.

      What is that then... Oh well. I back to searching then kubuntu packages. Thanks :).

      Edit: Found it 'libexpat1-dev' package. After that all went fine.