coreseek安装笔记

下载并解压coreseek
cd /usr/local/src
wget http://www.coreseek.cn/uploads/csft/4.0/coreseek-4.1-beta.tar.gz
tar zxvf coreseek-4.1-beta.tar.gz

安装词库
cd coreseek-4.1-beta
cd mmseg-3.2.14
./bootstrap
./configure --prefix=/usr/local/mmseg3
make && make install
遇到的问题及解决方案:
问题:
error: cannot find input file: src/Makefile.in
解决方案:
aclocal
libtoolize --force
automake --add-missing
autoconf
autoheader
make clean
运行aclocal时出错的解决方案:
错误
configure.in:26: warning: macro `AM_PROG_LIBTOOL' not found in library
解决方案:
yum -y install libtool

安装coreseek (要用python 源的话,要先安装python2.6或2.7)
cd ../csft-4.1
sh buildconf.sh
export LIBS="-ldl -lutil -Xlinker -export-dynamic"
./configure --prefix=/usr/local/coreseek  --without-unixodbc --with-mmseg --with-mmseg-includes=/usr/local/mmseg3/include/mmseg/ --with-mmseg-libs=/usr/local/mmseg3/lib/ --with-mysql --with-python
export LIBS="-liconv"
make && make install


以下用来测试是否正确
cd /usr/local/src/coreseek-4.1-beta/testpack
cat var/test/test.xml
/usr/local/mmseg3/bin/mmseg -d /usr/local/mmseg3/etc var/test/test.xml
/usr/local/coreseek/bin/indexer -c /usr/local/src/coreseek-4.1-beta/testpack/etc/csft.conf --all
/usr/local/coreseek/bin/search -c etc/csft.conf 网络搜索

你可能感兴趣的:(笔记)