Centos5.6 coreseek 安装

  • 下载coreseek并解压,先安装mmseg分词器。进入mmseg目录
  • 运行./configure --prefix=/usr/local/mmseg结束后报错。cannot find input file: src/Makefile.in
  • 通过在该目录下运行 automake 命令解决。没有此命令可以通过yum安装
  • 再次运行./configure --prefix=/usr/local/mmseg    make && make install
  • 安装coreseek

./configure --prefix=/usr/local/coreseek \
--with-mysql=/usr/local/mysql \
--with-mmseg=/usr/local/mmseg \
--with-mmseg-includes=/usr/local/mmseg/include/mmseg/ \
--with-mmseg-libs=/usr/local/mmseg/lib/

  • 安装 coreseek 过程中出错 Expr_ArgVsSet_c<int>’ are not found by unqualified lookup
  • 上网搜索一番,大概是gcc4.7的原因
  • 通过如下方法解决

找到src/sphinxexpr.cpp里面的代码
ExprEval ( this->m_pArg, tMatch );
替换为
this->ExprEval ( this->m_pArg, tMatch );
共三处。我安装的是coreseek-3.2.14.tar.gz

  • 重新运行上述 configure ...   make && make install

猜你喜欢

转载自lipengyu2006.iteye.com/blog/1806552