[pylucene-dev] Missing Header Files?
Andi Vajda
vajda at osafoundation.org
Tue Jun 20 10:06:14 PDT 2006
On Tue, 20 Jun 2006, Kevin wrote:
> Hi,
>
> I'm trying to install PyLucene on Ubuntu/Breezy
> from source downloaded for your current svn repository at:
>
> http://svn.osafoundation.org/pylucene/trunk/
>
> and am having problems with finding header files from lucene.h
> lucene.h requires:
> #include "org/apache/lucene/index/Term.h"
> ... snip ...
> #include "org/apache/lucene/queryParser/MultiFieldQueryParser.h"
> -------
> But these headers are not available within your svn repository? and when I
> try to "make":
If you wish to build PyLucene from svn sources you must install a JDK because
ant and javac are used to compile from .java to .jar.
If you use the source tarballs I upload to the PyLucene download site, you do
*not* need a JDK as I include the .jar files.
The header files you're referring to are generated during the build by gcjh
the java header file generator. These header files are also included in the
source tarballs.
Andi..
> I recieve the errors:
>
> deagol:~/pyLucene$ make
> /usr/local/gcc-3.4.4/bin/g++ -Ilucene-java-2.0.0/build/classes/java
> -Ilucene-java-2.0.0/build/contrib/highlighter/classes/java
> -Ilucene-java-2.0.0/build/contrib/snowball/classes/java
> -Ilucene-java-2.0.0/build/contrib/analyzers/classes/java
> -Ilucene-java-2.0.0/build/contrib/regex/classes/java -Irelease/classes
> -I/usr/include/python2.4 -I/usr/local/gcc-3.4.4/include -O2 -fPIC -c -o
> release/regex.cpp.o cpp/PythonRegex.cpp
> In file included from /usr/include/python2.4/Python.h:8,
> from cpp/PyLucene.h:32,
> from cpp/PythonRegex.cpp:24:
> /usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
> In file included from /usr/include/string.h:26,
> from /usr/include/c++/4.0.2/gcj/cni.h:22,
> from cpp/PyLucene.h:27,
> from cpp/PythonRegex.cpp:24:
> /usr/include/features.h:150:1: warning: this is the location of the
> previous definition
> In file included from cpp/PyLucene.h:38,
> from cpp/PythonRegex.cpp:24:
> cpp/../lucene.h:27:42: error: org/apache/lucene/index/Term.h: No such file
> or directory
> cpp/../lucene.h:28:46: error: org/apache/lucene/index/TermEnum.h: No such
> file or directory
> cpp/../lucene.h:29:49: error: org/apache/lucene/index/IndexReader.h: No
> such file or directory
> cpp/../lucene.h:30:47: error: org/apache/lucene/search/Searcher.h: No such
> file or directory
> cpp/../lucene.h:31:47: error: org/apache/lucene/search/ScoreDoc.h: No such
> file or directory
> cpp/../lucene.h:32:45: error: org/apache/lucene/search/Weight.h: No such
> file or directory
> cpp/../lucene.h:33:45: error: org/apache/lucene/search/Filter.h: No such
> file or directory
> etc ...
>
> ==========
>
> Must be something simple surely : - )
>
> Best Wishes
> Kevin Roberts
>
>
>
>
>
>
> _______________________________________________
> pylucene-dev mailing list
> pylucene-dev at osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
>
More information about the pylucene-dev
mailing list