Skip to main content.
home | support | download

Back to List Archive

building perl mod for 2.2.3

From: Peter Karman <karman(at)>
Date: Thu Aug 21 2003 - 19:18:31 GMT

I'm trying to build the perl module for 2.2.3 under RedHat 7.3
Linux pubslinux 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 unknown

swish-e builds fine. I installed the library. Then tried building the perl 
module, but it errors without finding -lz. I just build this successfully under 
IRIX and Solaris this a.m., so not sure what it's looking for (Linux is usually 
the easiest of the three... :) ).

I am struggling with trying to decipher the error messages from make.

pubs@pubslinux 54% perl Makefile.PL PREFIX=$PUBSROOT/tools/usr/perl_mods/tmp
Parsing ../src/acconfig.h...
Swish was built with zlib support
Swish was not built with libxml2 support
MakeMaker (v6.05)
   DIR => []
   LIBS => [q[-L../src -lswish-e -lz]]
   NAME => q[SWISHE]
   NORECURS => q[1]
   PREFIX => q[/data/mw/pubs/tools/usr/perl_mods/tmp]
   PREREQ_PM => {  }
   VERSION_FROM => q[]
Using PERL=/usr/bin/perl
Potential libraries are '-L../src -lswish-e -lz':
Warning: -L../src changed to 
'-lswish-e' found at 
z not found in /data/mw/pubs/tools/sw/swish-e/src/swish-e-2.2.3/perl/../src
z not found in /usr/local/lib
z not found in /lib
'-lz' found at /usr/lib/
Writing Makefile for SWISHE
pubs@pubslinux 55% make
cp blib/lib/
/usr/bin/perl /usr/lib/perl5/5.6.1/ExtUtils/xsubpp  -typemap 
/usr/lib/perl5/5.6.1/ExtUtils/typemap  SWISHE.xs > SWISHE.xsc && mv SWISHE.xsc 
gcc -c   -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686 
-DVERSION=\"0.02\" -DXS_VERSION=\"0.02\" -fPIC 
"-I/usr/lib/perl5/5.6.1/i386-linux/CORE"   SWISHE.c
Running Mkbootstrap for SWISHE ()
chmod 644
rm -f blib/arch/auto/SWISHE/
gcc  -shared -L/usr/local/lib SWISHE.o  -o blib/arch/auto/SWISHE/ 
-L/data/mw/pubs/tools/sw/swish-e/src/swish-e-2.2.3/perl/../src -lswish-e -lz
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/SWISHE/] Error 1
pubs@pubslinux 56%
Peter Karman - Software Publications Programmer - Cray Inc
phone: 651-605-9009 -
Received on Thu Aug 21 19:18:49 2003