coreseek3.2.13 安装记录

下载coreseek linux版本

 

     http://www.coreseek.cn/uploads/csft/3.2/coreseek-3.2.13.tar.gz

 

 

解压  tar zxvf coreseek-3.2.12.tar.gz

 

 

cd coreseek-3.2.13
mmseg和csft都在这个目录下
cd mmseg-3.2.13/
./configure --prefix=/usr/local/mmseg3
出现如下错误提示:

引用
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: error: cannot find input file: src/Makefile.in


使用官网的第一步yum -y install gcc gcc-c++ libtool autoconf automake imake升级一些系统文件,仍然不行。

找到其站上Csft 3.2的安装说明:http://www.coreseek.cn/news/6/100/

aclocal
libtoolize --force 
automake --add-missing
autoconf
autoheader
make clean
./configure --prefix=/usr/local/mmseg3
通过了
make
make install
安装完成后,mmseg使用的词典和配置文件,自动安装在/usr/local/mmseg3/etc中

 

 

 

##安装coreseek:
#cd csft-3.2.13
#执行configure,进行编译配置:
#./configure --prefix=/usr/local/coreseek --without-python --without-mysql --with-mmseg --with-mmseg-includes=/usr/local/mmseg3/include/mmseg/ --with-mmseg-libs=/usr/local/mmseg3/lib/
#make
#make install


安装完后在/usr/local/coreseek 有三个目录,bin,etc和var。
创建dict目录
mkdir /usr/local/coreseek/dict/

产生字典
cd /root/soft/mmseg-3.1/data
/usr/local/mmseg/bin/mmseg -u unigram.txt 
产生了unigram.txt.uni,移到相应目录。
cp unigram.txt.uni /usr/local/coreseek/dict/uni.lib

 

 

[mmseg]
merge_number_and_ascii=1;
number_and_ascii_joint=-;
compress_space=0;
seperate_number_ascii=1;

#merge_number_and_ascii: 字母和数字连续出现是非切分
#number_and_ascii_joint:连接数字和字母可用的符号,如'-' '.' 等
#compress_space:暂时无效
#seperate_number_ascii:是否拆分数字,如 1988 -> 1/x 9/x 8/x 8/x

安装完成。
配置文件*.conf参考csft.conf


##配置测试,测试是否可以正确运行
#/usr/local/coreseek/bin/indexer -c /usr/local/coreseek/etc/sphinx-min.conf.dist


官方安装文档http://www.coreseek.cn/products/products-install/install_on_bsd_linux/

 

 

 

 

/usr/local/coreseek/bin/indexer -c /usr/local/coreseek/etc/video.conf  --all

 


 using config file '/usr/local/coreseek/etc/video.conf'...
indexing index 'video'...
ERROR: source 's_video': unknown type 'mysql'; skipping.
ERROR: index 'video': failed to configure some of the sources, will not index.
total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
total 0 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg

 

 

 

##centos5.4/5.5: fedora12/13 : rhel5.5
#yum install mysql-devel libxml2-devel expat-devel

 

 

需要安装mysql的支持 coreseek 默认只有xml的支持

 

 

 

##重新编译安装coreseek,以支持mysql数据源和xml数据源

#cd csft-3.2.13
#make clean
#./configure --prefix=/usr/local/coreseek --with-mmseg --with-mmseg-includes=/usr/local/mmseg3/include/mmseg/ --with-mmseg-libs=/usr/local/mmseg3/lib/ --with-mysql

#make
#make install

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值