@zhutoulwz
2014-11-25T08:50:51.000000Z
字数 1141
阅读 1910
sphinx coreseek 全文搜索
出现的问题
undefined reference to 'libiconv'的错误,解决方法有如下:方法一(Linux系统使用)
export LIBS="liconv"make clean./configure --prefix=/usr/local/coreseek --without-python --without-unixodbc --with-mmseg --with-mmseg-includes=/usr/local/mmseg3/include/mmseg/ --with-mmseg-libs=/usr/local/mmseg3/lib/ --without-mysql
方法二:
configure之后,编辑src/Makefile,在其中搜索lexpat,在后面加上-liconv,修改后为-lexpat -liconv -L/usr/local/lib,再次执行make && make install
方法三:
首先configure,然后编辑config/config.h,将其中的USER_LIBICONV, 将其后的1修改为0,再次执行make && make install
测试
/usr/local/coreseek/bin/indexer -c etc/csft.conf --all ##--all表示全部索引/usr/local/coreseek/bin/searchd -c etc/csft.conf --console
/usr/local/coreseek/bin/searchd -c etc/csft.conf //后台服务/usr/local/coreseek/bin/searchd -c etc/csft.conf --stop //停止服务/usr/local/coreseek/bin/indexer -c etc/csft.conf index名称/usr/local/coreseek/bin/indexer -c etc/csft.conf --all --rotate// 更新后台服务的索引
