Gossamer Forum
Home : General : Perl Programming :

help needed Lucene.pm install fails / Links SQL

Quote Reply
help needed Lucene.pm install fails / Links SQL
Hi,

I am not sure where to post this problem and decided Perl Programming was best.
I already tried to get some information from the creator of Lucene.pm (Lucene-0.18 from CPAN) but I guess there won´t be any response at the moment.

I would like to use CLucene with Links SQL and it looks like CLucene is up and running on a Centos5 server:

Code:
./cl_test
Key: .= pass N=not implemented F=fail
All CLucene Tests:
CLucene Document Test: .
CLucene Debug Test: .
CLucene Analysis Test: .
CLucene Analyzers Test: .....
CLucene IndexWriter Test: .
CLucene High Frequencies Test: .
CLucene Priority Queue Test: .
CLucene Query Parser Test: ........
CLucene Search Test: ............
CLucene Term Vector Test: .....
CLucene Sort Test: ...........
CLucene Duplicates Test: ..
CLucene DateFilter Test: ...
CLucene Wildcard Test: ...
CLucene Store Test: ...
CLucene UTF8 Test: ..
CLucene Reuters Test: ..

62 tests run: 62 passed, 0 failed, 0 not implemented.

in Makefile.PL I had to add the path of clucene-config.h

Code:
perl Makefile.PL

Code:
Using clucene config file /usr/lib/CLucene/clucene-config.h to build Makefile
Building using clucene-core 0.9.21b
Note (probably harmless): No library found for -lclucene
Writing Makefile for Lucene
I don´t know of this probably harmless not found library is the problem so I went on.

Code:
make

Code:
g++ -c -I/usr/lib -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DVERSION=\"0.18\" -DXS_VERSION=\"0.18\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" -DCLUCENE_0_9_21 Lucene.c
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
Running Mkbootstrap for Lucene ()
chmod 644 Lucene.bs
rm -f blib/arch/auto/Lucene/Lucene.so
g++ -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic Lucene.o -o blib/arch/auto/Lucene/Lucene.so \
-lstdc++ \

chmod 755 blib/arch/auto/Lucene/Lucene.so
cp Lucene.bs blib/arch/auto/Lucene/Lucene.bs
chmod 644 blib/arch/auto/Lucene/Lucene.bs
Manifying blib/man3/Lucene.3pm

Code:
make test

Code:
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load....
# Failed test 'use Lucene;'
# in t/00-load.t at line 6.
# Tried to use 'Lucene'.
# Error: Can't load '/usr/local/src/Lucene-0.18/blib/arch/auto/Lucene/Lucene.so' for module Lucene: /usr/local/src/Lucene-0.18/blib/arch/auto/Lucene/Lucene.so: undefined symbol: _ZN6lucene8analysis11TokenFilter5closeEv at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230.
# at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at t/00-load.t line 6.
t/00-load....NOK 1# Testing Lucene 0.18, Perl 5.008008, /usr/bin/perl
# Looks like you failed 1 test of 1.
t/00-load....dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/00-load.t 1 256 1 1 100.00% 1
Failed 1/1 test scripts, 0.00% okay. 1/1 subtests failed, 0.00% okay.
make: *** [test_dynamic] Error 1

And here I am stuck.
I have no clue what to do. I tried a couple of installations of clucene and would appreciate any hint.

Regards

Niko
Subject Author Views Date
Thread help needed Lucene.pm install fails / Links SQL el noe 7784 Jan 18, 2011, 4:35 AM
Thread Re: [el noe] help needed Lucene.pm install fails / Links SQL
Andy 7587 Jan 18, 2011, 5:29 AM
Thread Re: [Andy] help needed Lucene.pm install fails / Links SQL
el noe 7581 Jan 18, 2011, 5:58 AM
Thread Re: [el noe] help needed Lucene.pm install fails / Links SQL
Andy 7586 Jan 18, 2011, 6:01 AM
Post Re: [Andy] help needed Lucene.pm install fails / Links SQL
el noe 7556 Jan 18, 2011, 6:39 AM