Coreseek搭建随记

步骤是按照官网教程来作的可是过程当中遇到挺多问题linux

官网教程:http://www.coreseek.cn/products-install/install_on_bsd_linux/vim

其中用到的命令:curl

  查找:sudo dpkg -l | grep xxthis

  卸载:sudo dpkg -P  XXX(ps:linux不太熟)url

问题1参考网址http://blog.shiniv.com/2013/08/mac-install-coreseek-full-text-search/spa

  解决方案:code

  把automake版本下降为1.11,就能够了。
  $ curl -O -L http://mirrors.kernel.org/gnu/automake/automake-1.11.tar.gz
  $ tar xzvf automake-1.11.tar.gz
  $ cd automake-1.11
  $ ./configure --prefix=/usr/local
  $ make && make installblog

问题2教程

  官网关于解决ndefined reference to `libiconv'的相似错误的解决方案ip

  推荐尽可能用

  ## 方法二:
  ## 首先configure,而后vim src/makefile
  ## 在其中搜索lexpat,在其后加上 -liconv
  ## 修改后该行应该为:-lexpat -liconv -L/usr/local/lib
  ## 而后再次make && make install
若是下边程序出现path错误那么需运行export LIBS=""

问题3

  若是你的gcc版本在4.7以上,编译的时候可能会由于sphinx的一个bug报错

sphinxexpr.cpp:1746:43: error: ‘ExprEval’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

  解决方法参考bug报告里的一个patch,在csft-4.1目录下执行

wget -O - http://blog.atime.me/static/resource/sphinxexpr-gcc4.7.patch.gz | gzip -d - | patch -p0

 或者你也能够直接修改src/sphixexpr.cpp文件的1746, 1777和1823行,将三行中的ExprEval改成this->ExprEval

相关文章
相关标签/搜索