Ok - I worked it out.  I had to install zlib-devel .... if only the rest 
were that easy.

Matt

At Tuesday, 16-07-02 11:21 (+1000), Matt Hyne wrote:

>Ok, now I have no idea what I am doing, but I am trying to install some 
>CPAN perl modules (for another project) and I hit a snag, so I am hoping 
>there is a perl expert out there that can put me back on the rails.
>
>I used the command line:
>
>         perl -MCPAN -e shell
>
>to try and install the following library -
>
>         Compress::Zlib
>
>but I get the following error:
>
>cpan> install Compress::Zlib
>Running install for module Compress::Zlib
>Running make for P/PM/PMQS/Compress-Zlib-1.16.tar.gz
>   Is already unwrapped into directory /root/.cpan/build/Compress-Zlib-1.16
>
>   CPAN.pm: Going to build P/PM/PMQS/Compress-Zlib-1.16.tar.gz
>
>Parsing config.in...
>Looks Good.
>Up/Downgrade complete.
>Checking if your kit is complete...
>Looks good
>Writing Makefile for Compress::Zlib
>cp Zlib.pm blib/lib/Compress/Zlib.pm
>AutoSplitting blib/lib/Compress/Zlib.pm (blib/lib/auto/Compress/Zlib)
>/usr/bin/perl -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 
>/usr/lib/perl5/5.6.1/ExtUtils/xsubpp  -typemap 
>/usr/lib/perl5/5.6.1/ExtUtils/typemap -typemap typemap Zlib.xs > Zlib.xsc 
>&& mv Zlib.xsc Zlib.c
>gcc -c -I/usr/local/include -fno-strict-aliasing -I/usr/local/include -O2 
>-march=i386 -mcpu=i686   -DVERSION=\"1.16\" -DXS_VERSION=\"1.16\" -fPIC 
>-I/usr/lib/perl5/5.6.1/i386-linux/CORE  Zlib.c
>Zlib.xs:25:19: zlib.h: No such file or directory
>make: *** [Zlib.o] Error 1
>   /usr/bin/make  -- NOT OK
>Running make test
>   Can't test without successful make
>Running make install
>   make had returned bad status, install seems impossible
>
>It tells me it is missing zlib.h, which I would expect to be part of the 
>archive.
>
>Has anyone else had any experience with this and can offer some advice.  I 
>am not a perl expert and this is the first time I have used the CPAN stuff 
>- so go easy on me.
>
>
>Matt
>
>
>--
>SLUG - Sydney Linux User's Group - http://slug.org.au/
>More Info: http://lists.slug.org.au/listinfo/slug


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to