macos - macbook pro 安装 xunsearch 报错。

查看:377
本文介绍了macos - macbook pro 安装 xunsearch 报错。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

macbookpro 10.11.6 安装 xunsearch 时报错,

+==========================================+
| Welcome to setup xunsearch(full)         |
| 欢迎使用 xunsearch (完整版) 安装程序     |
+------------------------------------------+
| Follow the on-screen instructions please |
| 请按照屏幕上的提示操作以完成安装         |
+==========================================+

Please specify the installation directory
请指定安装目录 (默认为中括号内的值)
-n [/usr/local/Cellar/xunsearch]:


Confirm the installation directory
-n 请确认安装目录:/usr/local/Cellar/xunsearch [Y/n]


-n Checking scws ... 
1.2.3
-n Checking scws dict ... 
ok
-n Checking libuuid ... 
yes: /usr
-n Checking xapian-core-scws ... 
1.2.22
-n Checking libevent ... 
no
Installing libevent (2.0.21-stable) ... 
Extracting libevent package ...
Configuring libevent ...
Compiling & installing libevent ...
-----
libtool: link: ( cd ".libs" && rm -f "libevent_pthreads.la" && ln -s "../libevent_pthreads.la" "libevent_pthreads.la" )
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I./compat -I./include -I./include    -O2 -Wall -fno-strict-aliasing -Wno-deprecated-declarations -D_THREAD_SAFE  -MT bufferevent_openssl.lo -MD -MP -MF .deps/bufferevent_openssl.Tpo -c -o bufferevent_openssl.lo bufferevent_openssl.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./compat -I./include -I./include -O2 -Wall -fno-strict-aliasing -Wno-deprecated-declarations -D_THREAD_SAFE -MT bufferevent_openssl.lo -MD -MP -MF .deps/bufferevent_openssl.Tpo -c bufferevent_openssl.c  -fno-common -DPIC -o .libs/bufferevent_openssl.o
bufferevent_openssl.c:60:10: fatal error: 'openssl/bio.h' file not found
#include <openssl/bio.h>
         ^
1 error generated.
make[2]: *** [bufferevent_openssl.lo] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2
-----
ERROR: failed to compile libevent, see 'setup.log' for more detail

哪位大神指导下该怎么做?看不懂这些啊,似乎是跟 openssl 有关,可是我已经用 brew 装了 openssl 了啊,这问题在哪里?谢谢。

解决方案

运行一下就可以了。
brew install openssl
brew link openssl --force

参考http://www.yduba.com/Index/sh...

这篇关于macos - macbook pro 安装 xunsearch 报错。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆