1.假设已经有coreseek-4.1-beta.tar.gz源文件
[root@qp232 ~]# cd /usr/local
[root@qp232 local]# tar -zxvf /yd/lhm/coreseek-4.1-beta.tar.gz
2.解压后进去mmseg-3.2.14,安装mmseg
[root@qp232 coreseek-4.1-beta]# cd mmseg-3.2.14/ [root@qp232 mmseg-3.2.14]# ./configure --prefix=/usr/local/mmseg #环境检测中报错:config.status: error: cannot find input file: src/Makefile.in,执行以下命令(对环境里所需要的一些简单变量自动添加进去),解决 [root@qp232 mmseg-3.2.14]# automake #再次检测 [root@qp232 mmseg-3.2.14]# ./configure --prefix=/usr/local/mmseg[root@qp232 mmseg-3.2.14]# make && make install
[root@qp232 mmseg-3.2.14]# cd /usr/local/mmseg/
[root@qp232 mmseg]# ll
#表示安装成功
总计 16
drwxr-xr-x 2 root root 4096 04-09 09:55 bin
drwxr-xr-x 2 root root 4096 04-09 09:55 etc
drwxr-xr-x 3 root root 4096 04-09 09:55 include
drwxr-xr-x 2 root root 4096 04-09 09:55 lib
3.安装sphinx
#进入csft-4.1目录 编译安装sphinx
[root@qp232 mmseg]# cd /usr/local/coreseek-4.1-beta/csft-4.1/
#生成configure文件
[root@qp232 mmseg]# sh buildconf.sh
[root@qp232 csft-4.1]# ./configure --prefix=/usr/local/coreseek --with-mysql --with-mmseg=/usr/local/mmseg --with-mmseg-includes=/usr/local/mmseg/include/mmseg/ --with-mmseg-libs=/usr/local/mmseg/lib/
[root@qp232 csft-4.1]# make && make install
#编译安装完成之后进入coreseek
[root@qp232 csft-4.1]# cd /usr/local/coreseek
[root@qp232 coreseek]# ll
总计 16
drwxr-xr-x 2 root root 4096 04-09 10:40 bin
drwxr-xr-x 2 root root 4096 04-09 10:41 etc
drwxr-xr-x 3 root root 4096 04-09 10:41 man
drwxr-xr-x 4 root root 4096 04-09 10:41 var
#如上显示,表示安装成功
4.配置sphinx(csft)
[root@qp232 coreseek]# cd etc
#复制一份sphinx配置文件,重命名为csft.conf,必须为csft.conf
[root@qp232 etc]# cp sphinx.conf.dist csft.conf