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
Quote Reply
Re: [el noe] help needed Lucene.pm install fails / Links SQL In reply to
Hi,

Sorry, not had any experience with Lucine/Solr (well, I have - but not installing it Smile)

BTW, have you tried contacting GT? They have a Lucine (Sold) plugin for GForum and GLinks (at least they did last time I used it for the company I used to work for quite a few years ago Smile)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] help needed Lucene.pm install fails / Links SQL In reply to
Hi Andy,

thank you for your reply. I thought lucene was already implemented in Links because you have a Lucene folder in
./cgi-bin/admin/GT/SQL/Search/LUCENE
with
Indexer.pm
STH.pm
Search.pm
Lucene.txt

I wanted to play around with those and test it but therefor Lucene.pm should be installed. And that is where I am stuck.
I think GT would not want to support installations of CPAN modules.

Regards

Niko
Quote Reply
Re: [el noe] help needed Lucene.pm install fails / Links SQL In reply to
Yeah, I don't think its "built in", but I guess they left those modules in, for their plugin to work with (or for anyone to write their own, if they know how :))

Have you tried the lucine forums? (just had a quick look, and can't see any obvious forums - but there must be some around Smile)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] help needed Lucene.pm install fails / Links SQL In reply to
I could not find an appropriate forum that´s why I went back to GT where I still feel "home".
There where some similar messages on cpantesters.org but no solution.
I think I had it runnig once but maybe not. I made a lot of tries and probably there was a parameter or setting I used but I am not sure.
Anyway I appreciate the attention you gave my problem.

Regards

Niko