Am 30.01.2013 17:31, schrieb Andi Vajda:
Absolutely. If you want to contribute a patch with what you learned
getting pylucene and jcc to run on your combination of compiler and
operating system, by all means, send it in and I'll integrate it.
well, anyway and after all, i found there were only minimal changes to
do in setup.py and Makefile to get a running pylucene, as described in
the following. If you'll insert the necessary changes already in
setup.py and Makefile, you'll only have to take care about to install
the base-software and to run gmake instead of make.
--- snap ---
Installation notes for pylucene-3.6.2-1
JCC: Notes for Solaris
At this time, JCC has been built and tested only on Solaris 11.1 with
gcc 4.5, Java 1.7 and Python 2.6. Make sure, you’ve already installed
the following packages:
gcc-4.5
jre-1.7
jdk-1.7
python-2.6
ant
gnu-make
subversion
Missing packages can be installed vi “pkg install”.
1. Edit setup.py and do the following changes:
Inside JDK = { … }
change the entry for sunos5 to:
'sunos5': '/usr/jdk/instances/jdk1.7.0',
Inside CFLAGS= {…}
change the entry for sunos5 to:
'sunos5': ['-fno-strict-aliasing', '-Wno-write-strings'],
2. python setup.py build
3. su
python setup.py install
pylucene: Notes for Solaris
PyLucene's Makefile is a GNU Makefile. Be sure to use gmake instead of
plain make.
1. Edit Makefile and do the following changes:
Insert and enable a Solaris-Section with the following content
# Solaris (Solaris 11.1, Python 2.6, 32-bit, Java 1.7)
PREFIX_PYTHON=/usr
ANT=/usr/bin/ant
PYTHON=$(PREFIX_PYTHON)/bin/python
JCC=$(PYTHON) -m jcc.__main__ --reserved DEFAULT_TYPE
NUM_FILES=4
2. gmake
3. su
gmake install
---
please, send me a note, if something's still missing or not understandable.
:-) Thomas