[pylucene-dev] building on Debian

Jeff Bowden jlb at houseofdistraction.com
Thu Jun 24 09:16:50 PDT 2004


Took a few tries to get it to build on Debian/unstable.  Installing gcj 
and swig wasn't enough, I also needed libgcj4-dev and python-dev.  Also 
had to resolve some issue with gcj and UTF-8 encoding.

diff -u Makefile.orig Makefile

--- Makefile.orig       2004-06-24 08:51:22.000000000 -0700
+++ Makefile    2004-06-24 09:05:18.000000000 -0700
@@ -63,10 +63,10 @@
 #PREFIX_DB=/usr/local/BerkeleyDB.4.2

 # Linux
-#PREFIX=/usr/local
-#PREFIX_PYTHON=$(PREFIX)
-#SWIG=$(PREFIX)/bin/swig
-#GCJ_HOME=/usr/local
+PREFIX=/usr
+PREFIX_PYTHON=$(PREFIX)
+SWIG=$(PREFIX)/bin/swig
+GCJ_HOME=/usr
 #DB=$(PYLUCENE)/db-$(DB_VER)
 #PREFIX_DB=$(PREFIX)/BerkeleyDB.4.2

@@ -248,8 +248,8 @@


 $(BINDIR)/lucene.o:
-       $(JCC) -C -d $(CLASSES) $(LUCENE_SRCS)
-       $(JCC) $(CCFLAGS) -c -o $(BINDIR)/lucene.o $(LUCENE_SRCS)
+       $(JCC) --encoding=UTF-8 -C -d $(CLASSES) $(LUCENE_SRCS)
+       $(JCC) --encoding=UTF-8 $(CCFLAGS) -c -o $(BINDIR)/lucene.o 
$(LUCENE_SRCS)

 $(BINDIR)/reader.java.o: java/org/osafoundation/io/PythonReader.java
        $(JCC) -C -d $(CLASSES) java/org/osafoundation/io/PythonReader.java



More information about the pylucene-dev mailing list