Architecture and installation of Sphinx + MySQL full-text retrieval (2) II. installation steps of MySQL + Sphinx + SphinxSE:
1. install python support (The following is for CentOS systems. for other Linux systems, use the appropriate method for installation)
Yum install-y python-devel
2. Compile and install LibMMSeg (LibMMSeg is a Chinese word segmentation software package designed for sphsf-full-text search engine. it adopts the Chinese word segmentation method released under the GPL protocol and the MMSEG algorithm of Chih-Hao Tsai. LibMMSeg is used in this article to generate a Chinese word segmentation Dictionary .)
And Chinese word segmentation patches.
Click here to download the file
Unzip sphinx-0.9.8-rc2-chinese.zip
Tar zxvf mmseg-0.7.3.tar.gz
Cd mmseg-0.7.3/
./Configure
Make
Make install
Cd ../
3. Compile and install MySQL 5.1.26-rc, Sphinx, and SphinxSE storage engine
Wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.26-rc.tar.gz/from/http://mirror.x10.com/mirror/mysql/
Tar zxvf mysql-5.1.26-rc.tar.gz
Tar zxvf sphinx-0.9.8-rc2.tar.gz
Cd sphinx-0.9.8-rc2/
Patch-p1 <../sphinx-0.98rc2.zhcn-support.patch
Patch-p1 <../fix-crash-in-excerpts.patch
Cp-rf mysqlse ../mysql-5.1.26-rc/storage/sphse
Cd ../
Cd mysql-5.1.26-rc/
Sh BUILD/autorun. sh
. /Configure -- with-plugins = sphfix -- prefix =/usr/local/mysql-search/-- enable-starter er -- with-extra-charsets = complex -- enable-thread-safe-client -- with-big-tables -- with-readline -- with-ssl -- with-embedded-server -- enable-local-infile
Make & make install
Cd ../
Cd sphinx-0.9.8-rc2/
CPPFLAGS =-I/usr/include/python2.4
LDFLAGS =-lpython2.4
./Configure -- prefix =/usr/local/sphure -- with-mysql =/usr/local/mysql-search
Make
Make install
Cd ../
Mv/usr/local/sph1_/ etc/sph1_. conf/usr/local/sph1/
Etc/sphexample. conf. old