[关闭]
@zhutoulwz 2014-11-25T08:50:51.000000Z 字数 1141 阅读 1688

centos6.3 安装Coreseek3.2.14

sphinx coreseek 全文搜索


  1. 按照官方文档步骤安装
    http://www.coreseek.cn/products-install/install_on_bsd_linux/#srcdesc
  2. 出现的问题

    • 出现 undefined reference to 'libiconv'的错误,解决方法有如下:
    • 方法一(Linux系统使用)

      1. export LIBS="liconv"
      2. make clean
      3. ./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

  3. 测试

    • 建立索引
      /usr/local/coreseek/bin/indexer -c etc/csft.conf --all ##--all表示全部索引
    • 启动搜索服务
      • 控制台模式
        /usr/local/coreseek/bin/searchd -c etc/csft.conf --console
      • 后台服务模式
        1. /usr/local/coreseek/bin/searchd -c etc/csft.conf //后台服务
        2. /usr/local/coreseek/bin/searchd -c etc/csft.conf --stop //停止服务
        3. /usr/local/coreseek/bin/indexer -c etc/csft.conf index名称
        4. /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/
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注