macbookpro 10.12安装 xunsearch 时报错

新手上路,请多包涵

问题描述

macbookpro 10.12安装 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 ^

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过openssl没有加入到path下。运行以下就可以解决问题:
brew install openssl
brew link openssl --force
然后删除 $HOME/.xs_installed 并重新运行 ./setup.sh --clean, 之后重新安装

相关代码

// 请把代码文本粘贴到下方(请勿用图片代替代码)

ERROR: failed to compile libevent, see 'setup.log' for more detail

你期待的结果是什么?实际看到的错误信息又是什么?

怎么才能安装成功,大神们求解?

阅读 2k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题