编译安装CoreSeek-4.1
编译安装CoreSeek-4.1
yum -y install expat-devel*
wget http://www.coreseek.cn/uploads/csft/4.0/coreseek-4.1-beta.tar.gz
tar zxvf coreseek-4.1-beta.tar.gz
cd coreseek-4.1-beta
cd mmseg-3.2.14
./bootstrap
./configure --prefix=/opt/local/mmseg3
make && make install
cd ..
cd csft-4.1
sh buildconf.sh
./configure --prefix=/opt/local/coreseek --without-unixodbc --with-mmseg --with-mmseg-includes=/opt/local/mmseg3/include/mmseg/ --with-mmseg-libs=/opt/local/mmseg3/lib/ --with-mysql=/opt/local/mysql
make && make install
collect2: ld returned 1 exit status
make[2]:*** [indexer] Error 1
make[2]:Leaving directory `/opt/software/csft-4.1/src’
make[1]:*** [all] Error 2
make[1]:Leaving directory `/ opt/software/csft-4.1/src’
make:*** [all-recursive] Error 1
处理结果:
vi src/Makefile
LIBS = -lm -lexpat -L/usr/local/lib
修改为
LIBS = -lm -lexpat -liconv -L/usr/local/lib
----------------------------------------------------------------------------------------------------------------------
cd api/libsphinxclient
./configure
make && make install
(出现config.status: error: cannot find input file:Makefile.in 的情况执行以下代码)
aclocal
libtoolize --force
automake --add-missing
autoconf
autoheader
安装PHP扩展sphinx
wget http://pecl.php.net/get/sphinx-1.1.0.tgz
cd sphinx-1.1.0
/opt/local/php/bin/phpize
./configure--with-php-config=/opt/local/php/bin/php-config
make && make install
/opt/local/php/lib/php.ini 增加
extension = "sphinx.so"
生成词库文件
cd /opt/local/mmseg3
/opt/local/mmseg3/bin/mmseg -u /opt/local/mmseg3/etc/unigram.txt
mv unigram.txt.uni uni.lib
chmod +x *
修改 csft.conf 配置文件
cp /opt/data/mfs/folder3/htdocs/test/csft.conf/usr/local/coreseek/etc/
vi /opt/local/coreseek/etc/csft.conf
/opt/local/coreseek/bin/indexer -c /opt/local/coreseek/etc/csft.conf--all
启动coressek
/opt/local/coreseek/bin/searchd -c /opt/local/coreseek/etc/csft.conf
重建索引
/opt/local/coreseek/bin/indexer-c /opt/local/coreseek/etc/csft.conf -all
编译安装CoreSeek-4.1的更多相关文章
- 编译安装mmseg提示cannot find input file: src/Makefile.in错误
今天安装中文词检索功能模块 coreseek,其中一个分词模块 mmseg ,编译安装到最后,出现annot find input file: src/Makefile.in aclocal // ...
- Centos下Sphinx的下载与编译安装
官方下载地址 http://sphinxsearch.com/downloads/release/ 百度云下载地址 https://pan.baidu.com/s/1gfmPbd5 wget ...
- linux安装coreseek
coreseek就是一个中文词库加上sphinx组合而成的. 1.下载coreseek 下载到/usr/local/src目录文件下 wget http://www.coreseek.cn/uplo ...
- Centos6.5下编译安装mysql 5.6
一:卸载旧版本 使用下面的命令检查是否安装有MySQL Server rpm -qa | grep mysql 有的话通过下面的命令来卸载掉 rpm -e mysql //普通删除模式 rpm -e ...
- CENTOS 6.5 平台离线编译安装 PHP5.6.6
一.下载php源码包 http://cn2.php.net/get/php-5.6.6.tar.gz/from/this/mirror 二.编译 编译之前可能会缺少一些必要的依赖包,加载一个本地yum ...
- Linux下编译安装Vim8.0
什么是Vim? Vim 是经典的 UNIX 编辑器 Vi 的深度改良版本.它增加了许多功能,包括:多级撤销.格式高亮.命令行历史.在线帮助.拼写检查.文件名补完.块操作.脚本支持,等等.除了字符界面版 ...
- OpenSUSE下编译安装OpenFoam
在不是Ubuntu系统下安装OpenFoam,需要采用编译安装的方式.以下以OpenSuSE为例进行编译安装. 1 软件包准备 需要下载两个程序包: OpenFOAM-4.x-version-4.1. ...
- 不要着急改代码,先想想--centos 6.8下编译安装tmux
诸位读者新年好,2017开年第一篇博客,请允许我先问候一下看到这篇博客的诸位.写博客是我2017年定下的目标之一,希望我会坚持下去. 最近打算尝试一下tmux这个神器,于是有了这一篇关于思维方式的Bl ...
- protobuf的编译安装
github地址:https://github.com/google/protobuf支持多种语言,有多个语言的版本,本文采用的是在centos7下编译源码进行安装. github上有详细的安装说明: ...
随机推荐
- Form表单的post 和get跳转区别
post是隐示请求 ----- 安全 get显示请求不安全,会在URL上显示路径和参数
- ios 获得版本号
获取iphone的系统信息使用[UIDevice currentDevice],信息如下: [[UIDevice currentDevice] systemName]:系统名称,如iPhone OS ...
- linux的学习系列 1---简介
Linux简介 严格的来讲,Linux 不算是一个操作系统,只是一个 Linux 系统中的内核,即计算机软件与硬件通讯之间的平台:Linux的全称是GNU/Linux,这才算是一个真正意义上的Linu ...
- Java BigDecimal Class
Using BigDecimal to perform precise calculations with floats. BigDecimal is a class type. So declare ...
- 最短路<dijk>
题意: 有n个城市,有m条路,给出每条路的出发和结束的城市及长度,求从第一个城市到最后一个城市的最短路.按格式输出. power oj 2443 题解: 标准dijk算法. #include<c ...
- postgresql 在linux上的源码安装
http://my.oschina.net/hippora/blog/375292 下载源码并解压 [root@fnddb ~]# wget https://ftp.postgresql.org/pu ...
- android执行外部命令、检测文件是否存在、自动检测U盘路径
private final String UDiskFileName = "/2969_logo/bootfile.image"; private final String Loc ...
- 转:jmeter性能测试---登录百度进行搜索
在做web程序性能测试时,loadrunner和jmeter是两款常用的工具,两者比较起来,jmeter非常轻巧,且开源免费,上手快.这里简单介绍下jmeter的使用,以登录百度进行搜索为例. jme ...
- Android 学习 之 无需类名启动其他程序
在网上搜索了一会相关的实现代码,发现所有的文章都说是需要包名和类名.但是人家的程序,我们怎么可能知道哪个是第一个启动的Activity?所以,真正用在项目上,那种方法基本上没什么用的.于是查看官方文档 ...
- Nginx配置-伪静态,隐藏index.php大入口
server { listen ; server_name ; root E:/www/wvtuan/; index index.php index.html; log_not_found off; ...