coreseek/sphinx 安装错误[indexer][all][all-recursive][sphinx.o]Error

Share on:

今天参照官方安装教程安装coreseek出现两个错误,这里记录备忘下

 第一个错误

Internal error: Killed (program cc1plus)
make[2]:  [sphinx.o] error
make[2]:Leaving directory ‘/root/coreseek-3.2.14/csft-3.2.14/src’
make[1]: 
 [all] error 2
make[1]:Leaving directory ‘/root/coreseek-3.2.14/csft-3.2.14/src’
make: *** [all-recursive] error 1

上网查了下是内存不足导致的,尴尬,关闭了ng、mysql,顺利跑过了

第二个错误

/usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status
make[2]: *** [indexer] Error 1
make[2]: Leaving directory /root/coreseek-3.2.14/csft-3.2.14/src&#8217;</span> <span style="font-size: medium;">make[1]: *** [all] Error 2</span> <span style="font-size: medium;">make[1]: Leaving directory/root/coreseek-3.2.14/csft-3.2.14/src’
make: *** [all-recursive] Error 1

解决
一开始以为libiconv的问题,又重装了几次还是一样,最后终于找着办法了
编辑:
./src/MakeFile文件

LIBS = -lm -lexpat -L/usr/local/lib
改成
LIBS = -lm -lexpat -liconv -L/usr/local/lib