[SOLVED] pylucene-2.3.1-1 can't be compiled under Ubuntu Karmic (9.10) for AMD64

Bug #413551 reported by vak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pylucene (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

UPDATE: see SOLUTION below. Disclaimer: successfully checked as for pylucene-2.4.1-1 only!
Binary package hint: pylucene

make ends up with:

CFLAGS="" /usr/bin/python -m jcc --jar lucene-java-2.3.1/build/lucene-core-2.3.1.jar --jar lucene-java-2.3.1/build/contrib/snowball/lucene-snowball-2.3.1.jar --jar lucene-java-2.3.1/build/contrib/highlighter/lucene-highlighter-2.3.1.jar --jar lucene-java-2.3.1/build/contrib/analyzers/lucene-analyzers-2.3.1.jar --jar lucene-java-2.3.1/build/contrib/regex/lucene-regex-2.3.1.jar --jar lucene-java-2.3.1/build/contrib/queries/lucene-queries-2.3.1.jar --jar build/jar/extensions.jar --package java.lang java.lang.System java.lang.Runtime --package java.util java.text.SimpleDateFormat --package java.io java.io.StringReader java.io.InputStreamReader java.io.FileInputStream --exclude org.apache.lucene.queryParser.Token --exclude org.apache.lucene.queryParser.TokenMgrError --exclude org.apache.lucene.queryParser.QueryParserTokenManager --exclude org.apache.lucene.queryParser.ParseException --python lucene --mapping org.apache.lucene.document.Document 'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping java.util.Properties 'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence org.apache.lucene.search.Hits 'length:()I' 'doc:(I)Lorg/apache/lucene/document/Document;' --version 2.3.1 --files 2 --build
/usr/bin/python: jcc is a package and cannot be directly executed
make: *** [compile] Error 1

Revision history for this message
vak (khamenya) wrote :

OK.
SOLVED manually.

1. setuptools OR distutils should be installed.

2. I just entered the jcc dir and tried:

 python setup.py build

It stopped saying that I gotta apply a patch to distootils with instructions on the screen about how to do it. I followed them and patched things.

now

  sudo python setup.py install

and now I've returned to the root pylucene dir and makes steps over this error point OK.
I am waiting for result now :)

tags: added: pylucene solution
summary: - pylucene-2.3.1-1 can't be compiled under Ubuntu Karmic (9.10) for AMD64
+ [SOLVED] pylucene-2.3.1-1 can't be compiled under Ubuntu Karmic (9.10)
+ for AMD64
description: updated
Revision history for this message
Matthias Klose (doko) wrote :

checked that this is no issue in lucid

Changed in pylucene (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.