First attach coreseek4.1 version download
Pre-preparation work:
Yum install make gcc g++ automake libtool mysql-client libmysqlclient15-dev libxml2-dev libexpat1-dev autoconf automake li Btool
Let's say we download the package under/USR/LOCAL/SRC
CD/USR/LOCAL/SRC
tar zxvf coreseek-4.1-beta.tar.gz
CD Coreseek-4.1-beta
1. Install mmseg participle module
CD mmseg-3.2.14/./bootstrap./configure--prefix=/usr/local/mmseg3makemake Install
2. Install Coreseek
First solve the problems that will arise later:
A) Modify the Sphinxexpr.cpp file to modify the t val = expreval (This->m_parg, Tmatch) in the file to t val = This->expreval (This->m_parg, t Match), a total of three
b) Modify the buildconf.sh file, add a line to && aclocal \ && automake--add-missing \, which becomes
#! /bin/sh
autoheader \
&& aclocal
&& automake--add-missing
&& automake-- Foreign \
&& autoconf
c) modify file makefile, find LIBS, LIBS =-lm-lexpat-l/usr/local/lib Modify to LIBS =-lm-lexpat-liconv-l/usr/local/lib
Or
If you have already done a./configure operation before you, modify the file configure to find #define USE_LIBICONV 1 modified to define USE_LIBICONV 0
d) Change of document Configure.ac,am_init_automake ([-wall-werror foreign]) to Am_init_automake ([-wall foreign])
Add a row under Ac_prog_ranlib Am_prog_ar
And then run
SH buildconf.sh
./configure–prefix=/usr/local/coreseek–without-unixodbc–with-mmseg–with-mmseg-includes=/usr /local/mmseg3/include/mmseg/–with-mmseg-libs=/usr/local/mmseg3/lib/–with-mysql make
If there are more questions, please leave a message to discuss, thank you, my information is also integrated online resources
Testing at the server side:
Cd/usr/local/src/coreseek-4.1-beta/testpack
cat var/test/test.xml #此时应该正确显示中文
/usr/local/coreseek/bin/ Indexer-c etc/csft.conf–all #建立索引
/usr/local/coreseek/bin/search-c etc/csft.conf network Search #查找关键字
The above is a small set to introduce one of the Centos+php+coreseek+sphinx+mysql coreseek installation article, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!