./configure --prefix=/usr/local/sphinx/

打开源码目录/src/Makefile:

LIBS = -ldl -lm -lz -lexpat  -L/usr/local/lib -lrt  -lpthread

在尾部增加 -liconv

LIBS = -ldl -lm -lz -lexpat  -L/usr/local/lib -lrt  -lpthread  -liconv

最后执行make

make && make install

PS: 在帮koofind换服务器时,由于项目要求,将SphinxClient类改名,但会报一些warning错误,最后发现构造函数是SphinxClient,蛋疼,可能是为了兼容php4吧

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

无觅相关文章插件,快速提升流量