-
出现
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// 更新后台服务的索引
4. 参考
http://www.coreseek.cn/products-install/install_on_bsd_linux/
http://www.coreseek.cn/products-install/step_by_step/
http://www.coreseek.cn/products-install/mysql/