CLucene is a C++ version of Lucene, a high performance text search engine.
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
下载地址(HTTP):https://downloads.sourceforge.net/clucene/clucene-core-2.3.3.4.tar.gz
MD5 校验和:48d647fbd8ef8889e5a7f422c1bfda94
大小:2.2 MB
预计所需磁盘空间:78 MB
预计构建时间:0.8 SBU
Install CLucene by running the following commands:
patch -Np1 -i ../clucene-2.3.3.4-contribs_lib-1.patch &&
sed -i '/Misc.h/a #include <ctime>' src/core/CLucene/document/DateTools.cpp &&
mkdir build &&
cd build &&
cmake -D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_POLICY_VERSION_MINIMUM=3.5 \
-D BUILD_CONTRIBS_LIB=ON \
-W no-dev .. &&
make
Now, as the root user:
make install
-D
CMAKE_POLICY_VERSION_MINIMUM=3.5: This switch allows
building this package with cmake-4.0 or newer.
-D BUILD_CONTRIBS_LIB=ON:
This cmake variable enables building the CLucene contribs library
necessary for running applications that use language specific text
analyzers like LibreOffice for example.
-W no-dev: This parameter
silences several warnings only intended for project developers.