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

相關文章
相關標籤/搜索