1.安装xunsearch
参照官方文档:
http://www.xunsearch.com/doc/php/guide/start.installation

2.踩坑
如果是第一次 安装,是没有任何问题,如果是重复安装,请注意安装的目录,不要在原目录下安装。
官方的这个提示有个坑,那就是在原目录下安装会报错,比如原本目录是在/usr/local/xxx,把项目迁移到新服务器后,再次在/usr/local/xxx中安装会提示报错:
configure: error: Invalid xapian library, maybe not do the patch with scws?.
-----
ERROR: failed to configure xunsearch, see 'setup.log' for more detail
而如果你执行了以下命令:
yum install gcc-c++ libstdc++-devel bzip2 zlib-devel
却依然得不到解决的时候,请注意,更换一个目录,很重要!更换新目录安装成功。