lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KK <>
Subject Re: Pylucene installation issue on Ubuntu LInux
Date Mon, 10 Aug 2009 10:49:40 GMT
Thanks Christian.
After installing python-dev i'm able to do the build for jcc and then
installed without gettig any error messages. Then from the main directory i
changed the makefile and (surprisingly i dint see any site-packages
directory under python2.6, but i still modified the path for
then running  "make"  downloaded lucene stuffs, I guess, and then gave me
some error messages like this:
<error snip>

Total time: 2 seconds
ant -Dlucene.dir=lucene-java-2.2.0-578217
Buildfile: build.xml

    [mkdir] Created dir:
    [javac] Compiling 22 source files to
    [javac] Note:
uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

    [mkdir] Created dir: /home/kk/softies/socs/PyLucene-2.2.0-1/build/jar
      [jar] Building jar:

Total time: 1 second
CFLAGS= /usr/bin/python /usr/lib/python2.6/site-packages/jcc/
--jar lucene-java-2.2.0-578217/build/lucene-core-2.2.0-578217.jar --jar
--jar build/jar/extensions.jar --package java.lang java.lang.System
java.lang.Runtime java.lang.Boolean java.lang.Byte java.lang.Character
java.lang.Integer java.lang.Short java.lang.Long java.lang.Double
java.lang.Float --package java.util java.text.SimpleDateFormat --package --exclude org.apache.lucene.queryParser.Token
--exclude org.apache.lucene.queryParser.TokenMgrError --exclude
org.apache.lucene.queryParser.ParseException --python lucene --mapping
'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping java.util.Properties
'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence 'length:()I'
'doc:(I)Lorg/apache/lucene/document/Document;' --version 2.2.0-578217
--files 1 --build
/usr/bin/python: can't open file
'/usr/lib/python2.6/site-packages/jcc/': [Errno 2] No such file
or directory
make: *** [compile] Error 2

This cleary says that there is no file, in fact as I mentioned
earlier i couldn't find any site-packages directory under python2.6. Am I
doing something wrong? Whats the way out?

As a side note, I'm using open-jdk and not sun-jdk.


On Mon, Aug 10, 2009 at 3:40 PM, Christian Heimes <> wrote:

> KK wrote:
>  kk-laptop:~/softies/socs/PyLucene-2.2.0-1/jcc$ python build
>> running build
>> running build_py
>> creating build
>> creating build/lib.linux-i686-2.6
>> creating build/lib.linux-i686-2.6/jcc
>> copying jcc/ -> build/lib.linux-i686-2.6/jcc
>> copying jcc/ -> build/lib.linux-i686-2.6/jcc
>> copying jcc/ -> build/lib.linux-i686-2.6/jcc
>> copying jcc/ -> build/lib.linux-i686-2.6/jcc
>> creating build/lib.linux-i686-2.6/jcc/sources
>> copying jcc/sources/jcc.cpp -> build/lib.linux-i686-2.6/jcc/sources
>> copying jcc/sources/JCCEnv.cpp -> build/lib.linux-i686-2.6/jcc/sources
>> copying jcc/sources/functions.cpp -> build/lib.linux-i686-2.6/jcc/sources
>> copying jcc/sources/JObject.cpp -> build/lib.linux-i686-2.6/jcc/sources
>> copying jcc/sources/functions.h -> build/lib.linux-i686-2.6/jcc/sources
>> copying jcc/sources/macros.h -> build/lib.linux-i686-2.6/jcc/sources
>> copying jcc/sources/JObject.h -> build/lib.linux-i686-2.6/jcc/sources
>> copying jcc/sources/JArray.h -> build/lib.linux-i686-2.6/jcc/sources
>> copying jcc/sources/JCCEnv.h -> build/lib.linux-i686-2.6/jcc/sources
>> running build_ext
>> building 'jcc._jcc' extension
>> creating build/temp.linux-i686-2.6
>> creating build/temp.linux-i686-2.6/jcc
>> creating build/temp.linux-i686-2.6/jcc/sources
>> creating build/temp.linux-i686-2.6/_jcc
>> creating build/temp.linux-i686-2.6/_jcc/java
>> creating build/temp.linux-i686-2.6/_jcc/java/util
>> creating build/temp.linux-i686-2.6/_jcc/java/lang
>> creating build/temp.linux-i686-2.6/_jcc/java/lang/reflect
>> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
>> -Wstrict-prototypes -fPIC -I/usr/lib/jvm/java-6-openjdk/include/
>> -I/usr/lib/jvm/java-6-openjdk/include/linux -I_jcc -Ijcc/sources
>> -I/usr/include/python2.6 -c jcc/sources/jcc.cpp -o
>> build/temp.linux-i686-2.6/jcc/sources/jcc.o -DPYTHON
>> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
>> Ada/C/ObjC but not for C++
>> jcc/sources/jcc.cpp:29:20: error: Python.h: No such file or directory
> sudo apt-get install python-dev
> Christian

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message