Instructions for Building and Testing Perl Interface to CLucene on Linux
========================================================================

2005-May-11	Peter Edwards <peterdragon@users.sourceforge.net>

Download and install swig-1.3 or later to /usr/local and make sure it is in 
your PATH, e.g. "export PATH=/usr/local/bin:$PATH"

Then do one of 

1) EASIEST - Install using RPM and CPAN archives

1a. Download and install binary clucene RPM from http://sourceforge.net/projects/clucene using "rpm -i" command
which gives you 
	/usr/include/clucene_dllh.h
	/usr/include/clucene_dllp.h
	/usr/lib/clucene_dll.o
	/usr/lib/libclucene.a
	/usr/lib/libclucene.la
	/usr/lib/libclucene.so
	/usr/lib/libclucene.so.0
	/usr/lib/libclucene.so.0.0.0

1b. Download CPAN archive FulltextSearch::CLucene from http://search.cpan.org/~pedwards/
and build with
# tar xfz FulltextSearch-CLucene-1.00.tar.gz
# cd FulltextSearch-CLucene-1.00
# perl Makefile.PL
# make test
# make install

2) FOR DEVELOPERS - Install using source RPM

Download source clucene RPM from http://sourceforge.net/projects/clucene and install with "rpm -i" command
This will unpack the source below /usr/src/redhat/SOURCES by default
Then you can build either by doing
# rpmbuild -ba clucene   (builds below /usr/src/redhat/BUILD)
or manually to a clucene work area clucene.output below your home directory
# cd /usr/src/redhat/SOURCES
# tar xvfz clucene-0.9.0a.tar.gz  (depending on version number)
# cd clucene-0.9.0a
# sh bootstrap  (ignore warning)
# cd build/gcc
# ../../configure CXXFLAGS=-g CFLAGS=-g --prefix=$HOME/clucene.output
# make

then to build and test the perl wrapper interface
# cd ../../wrappers/perl
# make test

3) FOR DEVELOPERS - Build using source Gzipped tar archive

Download the latest clucene .tar.gz archive and to build to a clucene work
area clucene.output below your home directory
# tar xvfz clucene-0.9.0a.tar.gz  (depending on version number)
# cd clucene-0.9.0a
# sh bootstrap  (ignore warning)
# cd build/gcc
# ../../configure CXXFLAGS=-g CFLAGS=-g --prefix=$HOME/clucene.output
# make

then to build and test the perl wrapper interface
# cd ../../wrappers/perl
# make test

