You do need to install python 2.4 before compiling PyLucene.
You also need to edit the top of PyLucene/Makefile to tell it where python is installed (among other things).
Andi..
On Fri, 25 Mar 2005, Mail Goodies wrote:
Hello,
I'm trying to build PyLucene, however I am unable to run 'make all' the error (truncated) is attached below.
It seems that Python.h is missing. A 'find -iname Python.h' in the PyLucene directory, doesn't locate a Python.h file.
I have retrieved the source code by running: svn co http://svn.osafoundation.org/pylucene/trunk PyLucene
Here is some info about my machine: * Linux 2.6.9-1.667 (Fedora Core 3) * gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3) * SWIG Version 1.3.21
My modificaitons to the Makefile: # Linux PREFIX=/usr PREFIX_PYTHON=$(PREFIX) SWIG=$(PREFIX)/bin/swig GCJ_HOME=/usr #DB=$(PYLUCENE)/db-$(DB_VER) #PREFIX_DB=$(PREFIX)/BerkeleyDB.$(DB_LIB_VER)
Thanks, Ralph
ERROR (truncated): /usr/bin/g++ -I/usr/include/python2.4 -I/usr/include -Irelease/classes -O2 -fPIC -c -o release/util.cpp.o cpp/PythonUtil.cpp In file included from cpp/PythonUtil.cpp:24: cpp/PyLucene.h:28:20: Python.h: No such file or directory In file included from cpp/PythonUtil.cpp:24: cpp/PyLucene.h:31: error: `PyObject' was not declared in this scope cpp/PyLucene.h:31: error: `object' was not declared in this scope cpp/PyLucene.h:32: error: expected constructor, destructor, or type conversion before '*' token cpp/PyLucene.h:32: error: expected `,' or `;' before '*' token cpp/PyLucene.h:34: error: `PyObject' was not declared in this scope cpp/PyLucene.h:34: error: `psl' was not declared in this scope cpp/PyLucene.h:35: error: expected constructor, destructor, or type conversion before '*' token cpp/PyLucene.h:35: error: expected `,' or `;' before '*' token cpp/PyLucene.h:37: error: `PyObject' was not declared in this scope cpp/PyLucene.h:37: error: `pc' was not declared in this scope cpp/PyLucene.h:38: error: expected constructor, destructor, or type conversion before '*' token
. . . . . _______________________________________________ pylucene-dev mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
_______________________________________________ pylucene-dev mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
