centos 安装 coreseek

本文详细介绍了如何从零开始安装配置CoreSeek全文检索系统,包括必要的软件安装、源码下载、解压、编译配置及测试等步骤。

7、遇到问题:(这是遇到的问题,但需要第一步执行,于是提到了前面)

xmlpipe2 support NOT compiled in. To use xmlpipe2, install missing XML libraries, reconfigure, and rebuild Sphinx

coreseek安装需要预装的软件:

 

yum install make gcc g++ gcc-c++ libtool autoconf automake imake mysql-devel libxml2-devel expat-devel

 

1、coreseek 4.1 下载

下载地址:http://www.coreseek.cn/news/14/52/

 

2、原来残留下的coreseek

rm -rf coreseek-4.1-beta 
#-rf 递归、强制删除

 

 

3、解压:

tar -vxzf core-4.1-bete.tar.gz

#解压后的文件夹core-4.1-beta包含cstf-4.1 mmseg-3.2.14 testpack readme.txt

 

 

4、安装mmseg

cd ~/coreseek-4.1-beta/mmseg-3.2.14/

./bootstrap

./configure --prefix=/usr/local/mmseg3

make && make install

 配置显示(不要忘记make && make install):

Configuration:

  Source code location:       .
  Compiler:                   gcc
  Compiler flags:             -g -O2
  Host System Type:           i686-redhat-linux-gnu
  Install path:               /usr/local/mmseg3

  See config.h for further configuration information.

 

 

5、安装coreseek

cd ~/coreseek-4.1-beta/csft-4.1/

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

#Thank you for choosing Sphinx ! 

make && make install

#看到 Thank you for choosing Sphinx ! 提示,一高兴就忘了make了,结果没找到coreseek还以为是系统原因

 

 

6、测试mmseg分词

cd ~/coreseek-4.1-beta/testpack/

cat var/test/test.xml  #此时应该正确显示中文

/usr/local/mmseg3/bin/mmseg -d /usr/local/mmseg3/etc var/test/test.xml

/usr/local/coreseek/bin/indexer -c etc/csft.conf --all
#显示using config file 'etc/csft.conf'...

/usr/local/coreseek/bin/search -c etc/csft.conf 网络搜索
 #using config file 'etc/csft.conf'...
 #index 'xml': query '网络搜索 ': returned 1 matches of 1 total in 0.000 sec

 #displaying matches:
 #1. document=1, weight=1590, published=Thu Apr  1 22:20:07 2010, author_id=1

 #words:
 #1. '网络': 1 documents, 1 hits
 #2. '搜索': 2 documents, 5 hits

 

参考:CoreSeek快速安装

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值