Centos7.0下Coreseek + Sphinx 安装及配置,报错解决

1.mmseg中文分词的解压安装

一、安装前提必备先安装工具

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

1.进入安装包存放路径/usr/local/src,准备coreseek安装包

cd /usr/local/src
wget http://pppboy.com/wp-content/uploads/2016/02/coreseek-3.2.14.tar.gz

2.解压安装

tar zxvf coreseek-3.2.14.tar.gz

3.进入目录

cd coreseek-3.2.14/mmseg-3.2.14/

4.执行以下命令

./bootstrap #输出的warning信息可以忽略,如果出现error则需要解决
./configure --prefix=/usr/local/mmseg3
make
make install

注意:
#如果make之后,出现以下提示

libtool: Version mismatch error.  This is libtool 2.4.2, but the 
libtool: definition of this LT_INIT comes from libtool 2.2.6b.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2
libtool: and run autoconf again. make[5]: *** 1 Error 63

#这是因为libtool使用的版本不一致导致的,解决如下:
执行以下命令

# rm -rf aclocal.m4
# Autoreconf
# ./configure --prefix=/usr/local/mmseg3
# cp /usr/bin/libtool ./
# make && make install

安装好了之后,来检测下是不是安装成功
执行

cd /usr/local/mmseg3/bin/
./mmseg 

在这里插入图片描述
这就是mmseg中文分词安装成功

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值