龙空技术网

CentOS8.0系统安装讯搜(XunSearch)时出现libevent错误

晨梦杂谈 35

前言:

当前兄弟们对“libeventcentos”大概比较关怀,大家都想要学习一些“libeventcentos”的相关内容。那么小编同时在网络上搜集了一些关于“libeventcentos””的相关知识,希望兄弟们能喜欢,你们一起来学习一下吧!

很多小伙伴在安装讯搜(XunSearch)时都出现过如下错误提示:

bufferevent_openssl.c:237:2: note: (near initialization for 'methods_bufferevent') bufferevent_openssl.c:228:19: error: storage size of 'methods_bufferevent' isn't known static BIO_METHOD methods_bufferevent = { ^~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:793: bufferevent_openssl.lo] Error 1 make[2]: Leaving directory '/usr/local/src/xunsearch-full-1.4.14/libevent-2.0.21-stable' make[1]: *** [Makefile:857: install-recursive] Error 1 make[1]: Leaving directory '/usr/local/src/xunsearch-full-1.4.14/libevent-2.0.21-stable' make: *** [Makefile:1182: install] Error 2

这个Error2错误经经过测试基本都是因为linux的版本与讯搜安装需要的libeven版本不一致导致的。

现在基本常用的linux发行版已经把系统的openssl升级到了1.1.0+,但是讯搜解压的安装目录里面的是libeven2.0.x需要的是openssl<1.1.0才行,所以导致在安装讯搜(XunSearch)时会出现libeven错误。我们可以通过升级讯搜(XunSearch)中libeven2.0.x版本来实现一致。步骤如下:

1、下载libevent2.1.12安装包并上传到xunsearch文件夹中;

2、libevent解压

tar -zxvf libevent-2.1.12-stable.tar.gz

3、压缩成bz2格式,这是讯搜(XunSearch)安装包的支持的格式

tar -cjf libevent-2.1.12-stable.tar.bz2 libevent-2.1.12-stable

4、复制到xunsearch下的packages文件夹内

cp libevent-2.1.12-stable.tar.bz2 xunsearch-full-1.4.15/packages/

5、删除讯搜(XunSearch)自带的安装包

cd xunsearch-full-1.4.15/packages/ rm -f libevent-2.0.X

6、重新安装讯搜(XunSearch)即可

./setup.sh

标签: #libeventcentos #centos65libevent #xunsearchubuntu安装