Coreseek搭建随记

步骤是按照官网教程来做的但是过程中遇到挺多问题

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

其中用到的命令:

  查找:sudo dpkg -l | grep xx

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

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

  解决方案:

  把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 install

问题2

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

  推荐尽量用

  ## 方法二:
  ## 首先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

 

posted @ 2015-02-10 17:40  阿牧沙  阅读(419)  评论(0编辑  收藏  举报