Hello PyLuceners,
The PyLucene make command is failing with the following error:
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/jcc/__init__.py", line 37, in ?
_jcc.CLASSPATH = CLASSPATH
NameError: name '_jcc' is not defined
make: *** [compile] Error 1
Any ideas what I'm doing wrong and how I can fix it?
JCC seemed to build without error, and install itself in
/usr/lib64/python2.4/site-packages/jcc, as you can see above. I
edited the Makefile to contain the following settings:
PREFIX_PYTHON=/usr
ANT=ant
PYTHON=$(PREFIX_PYTHON)/bin/python
#JCC=$(PYTHON) $(PREFIX_PYTHON)/lib/python2.4/site-packages/jcc/__init__.py
JCC=$(PYTHON) $(PREFIX_PYTHON)/lib64/python2.4/site-packages/jcc/__init__.py
NUM_FILES=3
and edited jcc/setup.py to include:
JDK = {
'linux2': '/usr/lib/jvm/java-1.6.0',#'/usr/lib/jvm/java-6-openjdk',
}
I'm running CentOS:
$ uname -a
Linux foo.local 2.6.18-53.el5 #1 SMP Mon Nov 12 02:14:55 EST 2007
x86_64 x86_64 x86_64 GNU/Linux
with Java 6:
$ yum list installed java\*jdk\*
java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.23.1.9.10.el5_7 installed
java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.23.1.9.10.el5_7 installed
and Python 2.4:
$ yum list installed python\*
python.x86_64 2.4.3-44.el5 installed
python-devel.i386 2.4.3-44.el5 installed
python-devel.x86_64 2.4.3-44.el5 installed
Thank you,
Abe
--
A. Heifets
http://www.cs.toronto.edu/~aheifets/