网站制作学习网经验与学习→正文:error: storage size of 'methods_bufferevent' isn't known
字体:

error: storage size of 'methods_bufferevent' isn't known

经验与学习 2023/1/29 15:42:49  点击:不统计

原载于:文章来源:www.forasp.cn网站制作学习
 

 
安装xunsearch 出现错误如下:
 
: error: invalid use of incomplete typedef 'BIO' {aka 'struct bio_st'}
 
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 = {
                   ^~~~~~~~~~~~~~~~~~~
Makefile:793: recipe for target 'bufferevent_openssl.lo' failed
 
需要更新 https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
下载后需要解压,然后压缩为bz2格式
 
#先解压
tar -zxvf libevent-2.1.12-stable.tar.gz
#压缩成bz2
tar -cjf libevent-2.1.12-stable.tar.bz2 libevent-2.1.11-stable
删除原来自带的所有的libevent文件以及文件夹,然后把 libevent-2.1.12-stable.tar.bz2放到package里面
 
 
Checking scws ... 1.2.3
Checking scws dict ... ok
Checking libuuid ... yes: /usr
Checking xapian-core-scws ... 1.4.20
Checking libevent ... no
Installing libevent (2.1.12-stable) ...
Extracting libevent package ...
tar: ./packages/libevent-2.1.12-stable.tar.bz2: Not found in archive
tar: Exiting with failure status due to previous errors
Configuring libevent ...
Compiling & installing libevent ...
 
出现上面的问题是没有删除 历史的libevent,删除后重新运行./setup.sh安装即可 

·上一篇:nginx 日志统计ip >>    ·下一篇:header设置不显示nginx php版本 >>
推荐文章
最新文章