标签:sphinx
coreseek是封装好的sphinx服务,因此安装coreseek即可;mmseg是分词服务1、安装依赖
yum install make gcc g++ gcc-c++ libtool autoconf automake imake mysql-devel libxml2-devel expat-devel python-devel
2、下载coreseek
wget http://files.opstool.com/man/coreseek-4.1-beta.tar.gz
3、解压编译
tar xzvf coreseek-4.1-beta.tar.gz
mv coreseek-4.1-beta coreseek
cd mmseg-3.2.14/
./bootstrap
./configure --prefix=/usr/local/mmseg
make && make install
cd csft-4.1/
sh buildconf.sh
./configure --prefix=/usr/local/coreseek --without-unixodbc --with-mmseg --with-mmseg-includes=/usr/local/mmseg/include/mmseg/ --with-mmseg-libs=/usr/local/mmseg
make && make install
4、安装其他python组件
pip install MySQL-python
pip install pymongo
备注:遇到提示pymongo版本低的问题,需要手动下载pymongo,编译安装新的版本(不要用pip)
下载pymongo源码包
tar xzvf pymongo-2.7.2.tar.gz
python setup.py install
标签:sphinx
原文地址:http://blog.51cto.com/10643230/2113577