xunsearch 安装出现这种错误应该怎么解决
root@flarum xunsearch-full-1.4.14]# sh setup.sh
+==========================================+
| Welcome to setup xunsearch(full) |
| 欢迎使用 xunsearch (完整版) 安装程序 |
+——————————————+
| Follow the on-screen instructions please |
| 请按照屏幕上的提示操作以完成安装 |
+==========================================+
Please specify the installation directory
请指定安装目录 (默认为中括号内的值)
[/usr/local/xunsearch]:
Confirm the installation directory
请确认安装目录:/usr/local/xunsearch [Y/n]Y
Checking scws … 1.2.3
Checking scws dict … ok
Checking libuuid … yes: /usr
Checking xapian-core-scws … 1.4.13
Checking libevent … no
Installing libevent (2.0.21-stable) …
Extracting libevent package …
Configuring libevent …
Compiling & installing libevent …
~
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/xunsearch/xunsearch-full-1.4.14/libevent-2.0.21-stable’
make[1]: *** [Makefile:857: install-recursive] Error 1
make[1]: Leaving directory ‘/usr/local/xunsearch/xunsearch-full-1.4.14/libevent-2.0.21-stable’
make: *** [Makefile:1182: install] Error 2
ERROR: failed to compile libevent, see ‘setup.log’ for more detail