XML::Parser CPAN install error with Expat.o

I'm building a Debian Linux 'woody' system with linux kernel 2.2.20
and perl 5.6.1. I need to install XML::Parser and am encountering a
problem with expat.o:

cp Parser/LWPExternEnt.pl blib/lib/XML/Parser/LWPExternEnt.pl
make[1]: Entering directory `/root/.cpan/build/XML-Parser-2.34/Expat'
cp Expat.pm ../blib/lib/XML/Parser/Expat.pm
/usr/bin/perl /usr/share/perl/5.6.1/ExtUtils/xsubpp -noprototypes
-typemap /usr/share/perl/5.6.1/ExtUtils/typemap -typemap ty
pemap Expat.xs > Expat.xsc && mv Expat.xsc Expat.c
cc -c -DDEBIAN -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"2.34\
" -DXS_VERSION=\"2.34\" -fPIC "-I/usr/lib/perl/5.6.1/CORE" Expat.c
Expat.xs:12: expat.h: No such file or directory
make[1]: *** [Expat.o] Error 1
make[1]: Leaving directory `/root/.cpan/build/XML-Parser-2.34/Expat'
make: *** [subdirs] Error 2
/usr/bin/make -- NOT OK

Can someone point me to a solution for this? I didt an apt-get install
expat and tried to build the xml module again, without success. I do
not want to force install. I'd really like to fix it but I need some
direction. Thanks.

Gary
gary [ Sa, 02 Oktober 2004 00:36 ] [ ID #18983 ]

Re: XML::Parser CPAN install error with Expat.o

It appears that I do have expat on my system from the debian apt-get
install expat:

/usr/lib/libexpat.so.0
/usr/lib/libexpat.so.1
/usr/lib/libexpat.so.1.0.0

So is this a PATH problem, and if so how do I get CPAN to look for the
correct PATH?

gary [at] garynielson.com (Gary) wrote in message news:<c8639463.0410011436.54f0af33 [at] posting.google.com>...
> I'm building a Debian Linux 'woody' system with linux kernel 2.2.20
> and perl 5.6.1. I need to install XML::Parser and am encountering a
> problem with expat.o:
>
> cp Parser/LWPExternEnt.pl blib/lib/XML/Parser/LWPExternEnt.pl
> make[1]: Entering directory `/root/.cpan/build/XML-Parser-2.34/Expat'
> cp Expat.pm ../blib/lib/XML/Parser/Expat.pm
> /usr/bin/perl /usr/share/perl/5.6.1/ExtUtils/xsubpp -noprototypes
> -typemap /usr/share/perl/5.6.1/ExtUtils/typemap -typemap ty
> pemap Expat.xs > Expat.xsc && mv Expat.xsc Expat.c
> cc -c -DDEBIAN -fno-strict-aliasing -I/usr/local/include
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"2.34\
> " -DXS_VERSION=\"2.34\" -fPIC "-I/usr/lib/perl/5.6.1/CORE" Expat.c
> Expat.xs:12: expat.h: No such file or directory
> make[1]: *** [Expat.o] Error 1
> make[1]: Leaving directory `/root/.cpan/build/XML-Parser-2.34/Expat'
> make: *** [subdirs] Error 2
> /usr/bin/make -- NOT OK
>
> Can someone point me to a solution for this? I didt an apt-get install
> expat and tried to build the xml module again, without success. I do
> not want to force install. I'd really like to fix it but I need some
> direction. Thanks.
>
> Gary
gary [ Sa, 02 Oktober 2004 14:09 ] [ ID #18988 ]

Re: XML::Parser CPAN install error with Expat.o

Gary wrote:
> It appears that I do have expat on my system from the debian apt-get
> install expat:
>
> /usr/lib/libexpat.so.0
> /usr/lib/libexpat.so.1
> /usr/lib/libexpat.so.1.0.0
>
> So is this a PATH problem, and if so how do I get CPAN to look for the
> correct PATH?

That's just the runtime library - it doesn't include the headers needed
to compile against expat.

apt-get install libexpat1-dev

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
Sherm Pendley [ Sa, 02 Oktober 2004 18:44 ] [ ID #18991 ]

Re: XML::Parser CPAN install error with Expat.o

Thank you so much. That was it! Works like a charm now.

Sherm Pendley <spamtrap [at] dot-app.org> wrote in message news:<UOGdnWMnHptOR8PcRVn-tQ [at] adelphia.com>...
> Gary wrote:
> > It appears that I do have expat on my system from the debian apt-get
> > install expat:
> >
> > /usr/lib/libexpat.so.0
> > /usr/lib/libexpat.so.1
> > /usr/lib/libexpat.so.1.0.0
> >
> > So is this a PATH problem, and if so how do I get CPAN to look for the
> > correct PATH?
>
> That's just the runtime library - it doesn't include the headers needed
> to compile against expat.
>
> apt-get install libexpat1-dev
>
> sherm--
gary [ So, 03 Oktober 2004 23:31 ] [ ID #18997 ]
Perl » comp.lang.perl.modules » XML::Parser CPAN install error with Expat.o

Vorheriges Thema: Re: LWP Problems (Authentication?)
Nächstes Thema: How to install PDL::Slatec