centos 下 sphinx(coreseek)安装及常见问题
来源:互联网 发布:linux服务器端口开放 编辑:程序博客网 时间:2024/06/05 22:58
centos 下 sphinx(coreseek)安装及常见问题
前期准备:
libtool-2.4.2.tar.gz 、 autoconf-2.64.tar.bz2 、 automake-1.11.2.tar.gz 、 coreseek-3.2.14.tar.gz
sphinx工具包下载地址
开始安装
安装运行所需编译环境(-y是安装的时候不需确认)
yum -y install glibc make gcc g++ gcc-c++ libtool autoconf automake imake mysql-devel libxml2-devel expat-devel清除以前的autoconf
yum erase autoconf安装libtool
tar zxvf libtool-2.4.2.tar.gz
./configure
make
make install安装autoconf
tar jxvf autoconf-2.64.tar.bz2
cd autoconf-2.64
./configure
make
make install安装automake
tar xzvf automake-1.11.tar.gz
cd automake-1.11
./configure
make
make install安装mmseg、csft (这两个软件在coreseek文件里)
tar zxvf coreseek-3.2.14.tar.gz
cd coreseek-3.2.14先安装mmseg (安装过程不出现error就算成功)
cd mmseg-3.2.14
./bootstrap
./configure –prefix=/usr/local/mmseg
make && make install安装coreseek
cd csft-3.2.14
sh buildconf.sh
./configure –prefix=/usr/local/coreseek –without-unixodbc –with-mmseg –with-mmseg-includes=/usr/local/mmseg/include/mmseg/ –with-mmseg-libs=/usr/local/mmseg/lib/ –with-mysql
make && make install可能出现的问题
sphinxexpr.cpp:1047:43: error: ‘ExprEval’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]出现这个提示只需要找到csft-3.2.14/src/sphinxexpr.cpp 的 1047行,将ExprEval修改为this->ExprEval之后重新执行 make && make install 即可
测试mmseg分词和coreseek搜索
备注:需要预先设置好字符集为zh_CN.UTF-8,确保正确显示中文。
运行locale保证如下设置
LANG=zh_CN.UTF-8
LC_ALL=”zh_CN.UTF-8”配置测试
/usr/local/coreseek/bin/indexer -c /usr/local/coreseek/etc/sphinx-min.conf.dist
cd testpack
cat var/test/test.xml #窗口应该正确显示中文,如果出现乱码,请设置好字符集
/usr/local/mmseg/bin/mmseg -d /usr/local/mmseg/etc var/test/test.xml/usr/local/coreseek/bin/indexer -c etc/csft.conf –all
如果出现文件不存在
使用命令 find / -name csft.conf 找到文件位置,并将 etc/csft.conf 替换成查询到的位置如果出现Unigram dictionary load Error
编辑 csft.conf 文件,搜索 charset_dictpath ,修改为charset_dictpath = /usr/local/mmseg/etc//usr/local/coreseek/bin/search -c etc/csft.conf 自由缩放
出现如上图所示结果则表示成功参考文档
Sphinx中文指南
http://www.sphinxsearch.org/sphinx-tutorialSphinx中文分词应用
http://www.sphinxsearch.org/archives/82
- centos 下 sphinx(coreseek)安装及常见问题
- centos下,搜索引擎sphinx/coreseek安装教程
- centos下安装coreseek和sphinx php扩展
- window下的sphinx(coreseek)安装使用
- centos7.2下安装sphinx (coreseek-3.2.14版本)
- Sphinx以及coreseek的安装及使用
- coreseek/sphinx CentOS6.4下安装
- coreseek(sphinx)linux安装以及配置。。
- sphinx/coreseek 安装全过程
- sphinx的Coreseek安装
- coreseek sphinx 安装配置
- Sphinx/Coreseek安装
- sphinx的Coreseek安装
- 讲解Sphinx/Coreseek在windows下的配置安装及测试
- 【学习笔记】coreseek(sphinx)搜索引擎的安装及简单配置
- coreseek+sphinx+mysql+php 安装配置及实例
- sphinx中文分词coreseek在linux下的安装、配置以及使用方法(入门菜鸟级)
- coreseek&sphinx在linux下安装,配置,使用
- java 对象锁
- 机器学习:线性回归和逻辑回归的区别
- DevExpress之WaitDialogForm
- 中文版iTween帮助文档、参数解析
- 获取百度地图
- centos 下 sphinx(coreseek)安装及常见问题
- String类深拷贝的现代写法和传统写法
- 剑指offer 17---合并两个排序的链表
- 【剑指Offer】面试题31:连续子数组的最大和
- jedis与spring整合及简单的使用RedisTemplate操作
- vue学习指南1
- JEESZ分布式系统环境安装
- java设计模式-装饰者模式
- Java播放音乐