下载解压clucene.sourceforge.net/download.shtml
$cmake CMakeLists.txt
$make
$sudo make install
测试:
#include "CLucene.h"
int main(){
lucene::analysis::SimpleAnalyzer *sanalyzer = new lucene::analysis::SimpleAnalyzer();
}
g++ test.cpp -lclucene-core -I/usr/lib -fPIC
编译成功,证明已经成功安装。