Sphinx/Coreseek安装
来源:互联网 发布:php实例化对象方法 编辑:程序博客网 时间:2024/05/18 08:58
Sphinx/Coreseek简介¶
Sphinx是一个高性能的全文检索引擎,使用C++语言开发,采用GPL协议发布,可购买商业授权,目前的稳定版本是2.1.7。
Coreseek是基于Sphinx的中文全文检索引擎,使用MMSEG算法进行中文分词,并且提供Python数据源。Coreseek采用GPLv2协议发布,可购买商业授权,目前的稳定版本是3.2.14,基于Sphinx-0.9.9,测试版本是4.1,基于Sphinx-2.0.1。(另外,Coreseek官方论坛在2013年的年末称即将发布5.0版本,不过至今无详细消息)
Sphinx/Coreseek安装
下载Coreseek-4.1的源代码
wget http://www.coreseek.cn/uploads/csft/4.0/coreseek-4.1-beta.tar.gztar xvf coreseek-4.1.beta.tar.gzcd coreseek-4.1-beta
解压后发现有三个目录,主要的目录结构如下
coreseek-4.1-beta/ csft-4.1/ coreseek修改sphinx-2.0.1后的代码 api/ sphinx searchd[查询API][6]的实现 mmseg-3.2.14/ libmmseg分词库 testpack/ 测试和配置示例 README.txt 介绍和安装指南
按照官方的安装指南,依次安装mmseg和csft。如果在configure过程中提示缺少头文件,可通过apt-file查询需要安装的软件包。
安装mmseg-3.2.14
这里完全参考官方的安装指南即可
cd mmseg-3.2.14
./configure --prefix=/apps/svr/mmseg3
checking for vfprintf... yes
checking for waitpid... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: error: cannot find input file: src/Makefile.in
3配置mmseg插件时,将出现Makefile错误
yum -y install libtool
aclocal
libtoolize --force
automake --add-missing
autoconf
autoheader
make clean
上述完成之后,重新运行
./configure --prefix=/apps/svr/mmseg3
会出现如下界面
Configuration:
Source code location: .
Compiler: gcc
Compiler flags: -g -O2
Host System Type: x86_64-unknown-linux-gnu
Install path: /usr/local/mmseg3
See config.h for further configuration information.
make && make install
安装csft-4.1
这里configure的参数和安装指南上稍有区别
cd csft-4.0.1./configure --prefix=/apps/svr/coreseek --without-unixodbc --with-mmseg --with-mmseg-includes=/apps/svr/mmseg3/include/mmseg/ --with-mmseg-libs=/apps/svr/mmseg3/lib/ --with-mysql
make 时 出错
安装libiconv-1.14
先安装libiconv,用于字符集编码的转换。
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gztar xvf libiconv-1.14.tar.gzcd libiconv-1.14./configuremake && sudo make install && ldconfig
接下来安装----------------sphinx
参考链接:http://www.sphinxsearch.org/sphinx-tutorial
- [root@localhost src]# wget http://www.sphinxsearch.com/downloads/sphinx-0.9.9.tar.gz
- [root@localhost src]# tar zxvf sphinx-0.9.9.tar.gz
- [root@localhost local]# cd sphinx-0.9.9
- [root@localhost sphinx-0.9.9]# ./configure –prefix=/usr/local/sphinx #注意:这里sphinx已经默认支持了mysql
- [root@localhost sphinx-0.9.9]# make && make install # 其中的“警告”可以忽略
- sphinx/coreseek 安装全过程
- sphinx的Coreseek安装
- coreseek sphinx 安装配置
- Sphinx/Coreseek安装
- sphinx的Coreseek安装
- Sphinx/Coreseek简介&安装使用
- Sphinx(Coreseek)
- sphinx-coreseek
- Coreseek/Sphinx安装测试配置指南
- CentOS6.2 安装Coreseek(Sphinx)详细教程
- coreseek/sphinx CentOS6.4下安装
- centos下,搜索引擎sphinx/coreseek安装教程
- sphinx支持中文检索(安装coreseek)
- sphinx支持中文检索(安装coreseek)
- coreseek(sphinx)linux安装以及配置。。
- coreseek-4.1-beta 安装 mmseg sphinx
- sphinx(coreseek)在linux上的安装
- 全文搜索引擎coreseek安装配置(sphinx)
- RHEL6/7 下安装 devtoolset-3/4
- Android mermory link of WebView
- 基本术语概念理解
- iOS 点击空白处收回键盘
- windows blat发送邮件
- Sphinx/Coreseek安装
- 【Caffe实践】基于Caffe的人脸识别实现
- 解决github unable to access 'https://github.com/...: Failed to connect to github.com port 443
- LSB 简介
- java.io.FileNotFoundException: Too many open files
- 【Android基础 008】 Eclipse Devices中查看不到真实android设备的解决方法
- SSDP协议下STA模式和softAP模式间切换时遇到的数据收发问题
- 鱼眼相机标定以及OpenCV实现
- 【jQuery】兼容IE6树形组件jquery-treeview-master