Skip to main content.
home | support | download

Back to List Archive

[swish-e] error: can't load API.so -> libswish-e.so.2 not found

From: Miranda Hawarden-Ogata <hawarden(at)not-real.ifa.hawaii.edu>
Date: Fri May 25 2007 - 01:14:48 GMT
I just finished installing swish-e 2.4.5 and it appears to be working just 
fine on my CentOS 4.4 web server. Swish.cgi is also working properly. 
However, being greedy I would like to have search.cgi working as well, as I 
would like to use SWISH::API in my search form. As far as I can tell the 
installation goes fine until I get to make test, then it complains about not 
finding libswish-e.so.2. I've tried the suggestions in the archives but so 
far nothing has fixed it (though I am a perl newbie so I probably did 
something stupid or forgot something....)

irtfweb2:/src/swish-e-2.4.5/perl 233# perl Makefile.PL 
SWISHBINDIR=/usr/local/swish/swish-e/bin
Using swish-config found at [/usr/local/swish/swish-e/bin/swish-config]
Creating index...'/usr/local/swish/swish-e/bin/swish-e -c t/test.conf -f 
t/index.swish-e -v 0'

Checking if your kit is complete...
Looks good
Writing Makefile for SWISH::API

irtfweb2:/src/swish-e-2.4.5/perl 234# make
cp API.pm blib/lib/SWISH/API.pm
/usr/bin/perl /usr/lib/perl5/5.8.5/ExtUtils/xsubpp -noprototypes -typemap 
/usr/lib/perl5/5.8.5/ExtUtils/typemap -typemap typemap  API.xs > API.xsc && 
mv API.xsc API.c
gcc -c  -g -O2 -I/usr/local/swish/swish-e//include -D_REENTRANT -D_GNU_SOURCE 
 -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
 -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 
   -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -fPIC 
"-I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE"   API.c
Running Mkbootstrap for SWISH::API ()
chmod 644 API.bs
rm -f blib/arch/auto/SWISH/API/API.so
gcc  -shared -L/usr/local/lib API.o  -o 
ib/arch/auto/SWISH/API/API.so   -L/usr/local/swish/swish-e//lib -lswish-e -lz 
 -lm
chmod 755 blib/arch/auto/SWISH/API/API.so
cp API.bs blib/arch/auto/SWISH/API/API.bs
chmod 644 blib/arch/auto/SWISH/API/API.bs
Manifying blib/man3/SWISH::API.3pm

irtfweb2:/src/swish-e-2.4.5/perl 235# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" 
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/dummy....ok
t/test.....Can't load 
'/netdisks/hilo_shared/linux/software/swish/swish-e-2.4.5/perl/blib/arch/auto/SWISH/API/API.so' 
for module SWISH::API: libswish-e.so.2: cannot open shared object file: No 
such file or directory at 
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
 at t/test.t line 6
Compilation failed in require at t/test.t line 6.
t/test.....dubious
        Test returned status 2 (wstat 512, 0x200)
Failed Test Stat Wstat Total Fail  List of Failed
-------------------------------------------------------------------------------
t/test.t       2   512    ??   ??  ??
Failed 1/2 test scripts. 0/1 subtests failed.
Files=2, Tests=1,  1 wallclock secs ( 0.02 cusr +  0.01 csys =  0.03 CPU)
Failed 1/2 test programs. 0/1 subtests failed.
make: *** [test_dynamic] Error 2

irtfweb2:/src/swish-e-2.4.5/perl 236# make install
Files found in blib/arch: installing files in blib/lib into architecture 
dependent library tree
Writing 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/SWISH/API/.packlist
Appending installation info to 
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/perllocal.pod

irtfweb2:/src/swish-e-2.4.5/perl 237# ldd blib/arch/auto/SWISH/API/API.so
        libswish-e.so.2 => not found
        libz.so.1 => /usr/lib/libz.so.1 (0x00ded000)
        libm.so.6 => /lib/tls/libm.so.6 (0x007aa000)
        libc.so.6 => /lib/tls/libc.so.6 (0x00366000)
        /lib/ld-linux.so.2 (0x00a5b000)

irtfweb2:/src/swish-e-2.4.5/perl 238# make clean
rm -rf API.c t/index.swish-e t/index.swish-e.prop ./blib Makefile.aperl 
blib/arch/auto/SWISH/API/extralibs.all blib/arch/auto/SWISH/API/extralibs.ld 
perlmain.c tmon.out mon.out so_locations pm_to_blib *.o *.a perl.exe perl 
perl API.bs API.bso API.def libAPI.def API.exp API.x core core.*perl.*.? 
*perl.core core.[0-9] core.[0-9][0-9] core.[0-9][0-9][0-9] 
core.[0-9][0-9][0-9][0-9] core.[0-9][0-9][0-9][0-9][0-9]
mv Makefile Makefile.old > /dev/null 2>&1

irtfweb2:/src/swish-e-2.4.5/perl 239# perl Makefile.PL 
SWISHBINDIR=/usr/local/swish/swish-e/bin 
CCFLAGS=-I/usr/local/swish/swish-e/include 
LIBS="-L/usr/local/swish/swish-e/lib -lswish-e"
Using swish-config found at [/usr/local/swish/swish-e/bin/swish-config]
Creating index...'/usr/local/swish/swish-e/bin/swish-e -c t/test.conf -f 
t/index.swish-e -v 0'

Checking if your kit is complete...
Looks good
Writing Makefile for SWISH::API

irtfweb2:/src/swish-e-2.4.5/perl 240# make
cp API.pm blib/lib/SWISH/API.pm
/usr/bin/perl /usr/lib/perl5/5.8.5/ExtUtils/xsubpp -noprototypes -typemap 
/usr/lib/perl5/5.8.5/ExtUtils/typemap -typemap typemap  API.xs > API.xsc && 
mv API.xsc API.c
gcc -c  -g -O2 -I/usr/local/swish/swish-e//include -I/usr/local/swish/swish-e/include 
 -O2 -g -pipe -m32 -march=i386 -mtune=pentium4   -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" 
 -fPIC "-I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE"   API.c
Running Mkbootstrap for SWISH::API ()
chmod 644 API.bs
rm -f blib/arch/auto/SWISH/API/API.so
gcc  -shared -L/usr/local/lib API.o  -o 
ib/arch/auto/SWISH/API/API.so   -L/usr/local/swish/swish-e/lib -lswish-e
chmod 755 blib/arch/auto/SWISH/API/API.so
cp API.bs blib/arch/auto/SWISH/API/API.bs
chmod 644 blib/arch/auto/SWISH/API/API.bs
Manifying blib/man3/SWISH::API.3pm

irtfweb2:/src/swish-e-2.4.5/perl 241# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" 
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/dummy....ok
t/test.....Can't load 
'/netdisks/hilo_shared/linux/software/swish/swish-e-2.4.5/perl/blib/arch/auto/SWISH/API/API.so' 
for module SWISH::API: libswish-e.so.2: cannot open shared object file: No 
such file or directory at 
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
 at t/test.t line 6
Compilation failed in require at t/test.t line 6.
t/test.....dubious
        Test returned status 2 (wstat 512, 0x200)
Failed Test Stat Wstat Total Fail  List of Failed
-------------------------------------------------------------------------------
t/test.t       2   512    ??   ??  ??
Failed 1/2 test scripts. 0/1 subtests failed.
Files=2, Tests=1,  1 wallclock secs ( 0.02 cusr +  0.01 csys =  0.03 CPU)
Failed 1/2 test programs. 0/1 subtests failed.
make: *** [test_dynamic] Error 2

irtfweb2:/src/swish-e-2.4.5/perl 242# make install
Installing 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/SWISH/API/API.so
Files found in blib/arch: installing files in blib/lib into architecture 
dependent library tree
Writing 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/SWISH/API/.packlist
Appending installation info to 
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/perllocal.pod

irtfweb2:/src/swish-e-2.4.5/perl 243# ldd blib/arch/auto/SWISH/API/API.so
        libswish-e.so.2 => not found
        libc.so.6 => /lib/tls/libc.so.6 (0x00cac000)
        /lib/ld-linux.so.2 (0x00a5b000)

irtfweb2:/src/swish-e-2.4.5/perl 244# cd 
/usr/local/swish/swish-e/lib/swish-e

irtfweb2:/usr/local/swish/swish-e/lib/swish-e 245# perl -c search.cgi
Can't load 
'/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/SWISH/API/API.so' 
for module SWISH::API: libswish-e.so.2: cannot open shared object file: No 
such file or directory at 
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
 at search.cgi line 27
Compilation failed in require at search.cgi line 27.
BEGIN failed--compilation aborted at search.cgi line 27.

irtfweb2:/usr/local/swish/swish-e/lib/swish-e 246# find / -iname 
'*libswish-e.so.2*' -print
/src/swish-e-2.4.5/src/.libs/libswish-e.so.2.0.0
/src/swish-e-2.4.5/src/.libs/libswish-e.so.2
/usr/local/swish/swish-e.2.4.5/lib/libswish-e.so.2
/usr/local/swish/swish-e.2.4.5/lib/libswish-e.so.2.0.0

Please let me know if you need any more information.

Thanks!
Miranda

_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Thu May 24 21:15:19 2007