Click here to get back home

XML::Parser CPAN install error with Expat.o

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
XML::Parser CPAN install error with Expat.o Gary 10-01-2004
Posted by Gary on October 1, 2004, 4:36 pm
Please log in for more thread options
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


Posted by Gary on October 2, 2004, 6:09 am
Please log in for more thread options
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@garynielson.com (Gary) wrote in message
> 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


Posted by Sherm Pendley on October 2, 2004, 1:44 pm
Please log in for more thread options
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


Posted by Gary on October 3, 2004, 3:31 pm
Please log in for more thread options
Thank you so much. That was it! Works like a charm now.

> 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--


Similar ThreadsPosted
XML::Parser CPAN install error with Expat.o October 1, 2004, 4:36 pm
XML::Parser::Expat install problem April 24, 2005, 1:44 am
problems installing XML::Parser::Expat November 3, 2004, 3:50 am
A c program which printing the tag value of a xml file using expat parser in linux environment October 25, 2007, 7:05 am
expat error May 26, 2005, 9:01 pm
HTML::Parser error December 1, 2005, 8:31 am
Can not Install XML::Parser September 29, 2004, 5:26 pm
XML-Parser-2.34 install problem on Solaris December 7, 2004, 5:18 pm
only want to install one module and the depended ones, but CPAN always install the whole Perl. September 14, 2007, 5:23 pm
Upgrading to CPAN.pm v1.76 install Bundle::CPAN fails May 10, 2005, 9:51 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap