1 yum install make gcc g++ gcc-c++ libtool make mysql-devel libxml2-devel expat-devel
2 tar xzvf coreseek-4.0.1-beta.tar.gz
3 cd coreseek-4.0.1-beta
4 ##安装mmseg
5 cd mmseg-4.0.1-beta
6 ./bootstrap #输出的warning信息可以忽略,如果出现error则需要解决
7 ./configure --prefix=/usr/local/mmseg3
8
9 make && make install
10 cd ..
11
12 ##安装coreseek
13 cd csft-4.0.1
14 sh buildconf.sh #输出的warning信息可以忽略,如果出现error则需要解决
15
16 ./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
17 make && make install
18 cd ..
19 ##测试mmseg分词,coreseek搜索(需要预先设置好字符集为zh_CN.UTF-8,确保正确显示中文)
20 $ cd testpack
21 $ cat var/test/test.xml #此时应该正确显示中文
22 $ /usr/local/mmseg3/bin/mmseg -d /usr/local/mmseg3/etc var/test/test.xml
23 $ /usr/local/coreseek/bin/indexer -c etc/csft.conf --all
24 $ /usr/local/coreseek/bin/search -c etc/csft.conf 网络搜索