2010-11-02

Building CLucene

Note: done on Ubuntu 10.10.
Note 2: if no need for snapshot features, there is a pre-built package in the repo, called libclucene-dev.

Download CLucene source (tgz).

Install necessary dependency for building:
  • g++
  • zlib1g-dev
  • cmake

Make a new folder, and cd into it. Run cmake <clucene-source-folder>.
Then ccmake <clucene-source-folder> to turn on static library build.

If you get an error complaining undeclared INT_MAX in file src/core/CLucene/search/spans/TermSpans.cpp, insert #include <limits.h> at the beginning of that file.

No comments: