[1]centos 安装依赖包
yum install make gcc g++ gcc-c++ libtool autoconf automake imake mysql-devel libxml2-devel expat-devel
[2] 安装mysql数据源依赖包
yum install mysql-devel libxml2-devel expat-devel
[3] 下载安装包,并安装
$ wget http://www.coreseek.cn/uploads/csft/3.2/coreseek-3.2.14.tar.gz $ tar xzvf coreseek-3.2.14.tar.gz $ cd coreseek-3.2.14 ##安装mmseg中文分词 $ cd mmseg-3.2.14 $ ./bootstrap #输出的warning信息可以忽略,如果出现error则需要解决 $ ./configure --prefix=/usr/local/mmseg3 $ make && make install $ cd .. ##安装coreseek $ cd csft-3.2.14 $ sh buildconf.sh #输出的warning信息可以忽略,如果出现error则需要解决 $ ./configure --prefix=/usr/local/coreseek --without-unixodbc --with-mmseg=/usr/local/mmseg3 --with-mmseg-includes=/usr/local/mmseg3/include/mmseg/ --with-mmseg-libs=/usr/local/mmseg3/lib/ --with-mysql=/usr/local/mysql --with-mysql-includes=/usr/local/mysql/include/mysql/ --with-mysql-libs=/usr/local/mysql/lib/mysql/ ##如果提示mysql问题,可以查看MySQL数据源安装说明 $ make && make install $ cd ..
[4] 主要记录的是,出现错误的情况
/data0/software/coreseek-3.2.14/csft-3.2.14/src/sphinx.cpp:4764: undefined reference to `libiconv' libsphinx.a(sphinx.o): In function `CSphTokenizer_zh_CN_UTF8_Private::GetConverterOutput(char const*, char const*)': /data0/software/coreseek-3.2.14/csft-3.2.14/src/tokenizer_zhcn.h:86: undefined reference to `libiconv_open' /data0/software/coreseek-3.2.14/csft-3.2.14/src/tokenizer_zhcn.h:89: undefined reference to `libiconv' libsphinx.a(sphinx.o): In function `xmlUnknownEncoding': /data0/software/coreseek-3.2.14/csft-3.2.14/src/sphinx.cpp:20719: undefined reference to `libiconv_open' /data0/software/coreseek-3.2.14/csft-3.2.14/src/sphinx.cpp:20737: undefined reference to `libiconv' /data0/software/coreseek-3.2.14/csft-3.2.14/src/sphinx.cpp:20743: undefined reference to `libiconv_close' libsphinx.a(sphinx.o): In function `CSphTokenizer_zh_CN_GBK::SetBuffer(unsigned char*, int)': /data0/software/coreseek-3.2.14/csft-3.2.14/src/sphinx.cpp:4792: undefined reference to `libiconv' libsphinx.a(sphinx.o): In function `CSphTokenizer_zh_CN_UTF8_Private::GetConverter(char const*, char const*)': /data0/software/coreseek-3.2.14/csft-3.2.14/src/tokenizer_zhcn.h:70: undefined reference to `libiconv_open' /data0/software/coreseek-3.2.14/csft-3.2.14/src/tokenizer_zhcn.h:73: undefined reference to `libiconv' collect2: ld returned 1 exit status make[2]: *** [indexer] Error 1 make[2]: Leaving directory `/data0/software/coreseek-3.2.14/csft-3.2.14/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/data0/software/coreseek-3.2.14/csft-3.2.14/src' make: *** [all-recursive] Error 1
[5] ./configure之后,进入/src目录下,找到Makefile,用vi打开
将 LIBS = -lm -lexpat -L/usr/local/lib 改成 LIBS = -lm -lexpat -liconv -L/usr/local/lib
搞定,安装成功!
相关推荐
centos 6.5安装coreseek,亲测ok coreseek-3.2.14
coreseek中文索引. gcc 版本高于 4.7 造成的安装不成功,有补丁下载.
主要介绍了centos+php+coreseek+sphinx+mysql之一coreseek安装篇的相关资料,非常不错具有参考借鉴价值,需要的朋友可以参考下
NULL 博文链接:https://sinykk.iteye.com/blog/1154099
说明了基于 XML 的数据源的全文检索工具 Coreseek 在 CentOS 下安装的过程。 OSSEZ
想把一个老系统迁到CentOS 8下,这个系统用到了coreseek。在CentOS 8下编译总是出错,折腾了好久终于编译通过。 这是我修改过的可以编译的源码包。
用于描述 Coreseek 使用 MySQL 的数据源进行安装的方法。 OSSEZ
本人安装CoreSeek的系统为Centos6.0 CoreSeek版本: coreseek 3.2.14:点击下载 PHP:PECL/Sphinx扩展:sphinx-1.2.0.tgz 点击下载 。这些软件是都是源码包,我们是要通编译进行安装的。 前提条件是系统己安装...
之前上传的coressek-3.2.14在我的centos上编译通不过。百度了下,说是不兼容GCC4.7。 又找了个coreseek-4.1,但是又遇到不能生成configure文件。再百度找到解决方案。修改完,重新打了个包。供下载。
全文检索的索引创建过程一般有以下几步:1、... 您可能感兴趣的文章:浅谈Coreseek、Sphinx-for-chinaese、Sphinx+Scws的区别centos+php+coreseek+sphinx+mysql之一coreseek安装篇使用rst2pdf实现将sphinx生成PDF在MySQL
目前已在centos 6.x (64bit)测试正常。各软件列表:Nginx V1.9.5Tengine V2.1.1PHP V5.5.21与V5.6.13PHP扩展:memcache, memcached, redis, mongodb, xhprof, yafphp, xdebug, imagickMysql V5.6.27MariaDB V10.0.21...
sphinx-1.3.0,我空间还有一个coreseek,centos下面搭配成功,可以使用,希望帮助到你,不懂的可以问我,我会尽力帮你