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 了啊,这问题在哪里?谢谢。

阅读 2.5k
评论 更新于 2016-09-19
    3 个回答
    评论 赞赏 2016-11-16
      dryyun
      • 5.4k

      歪一下
      推荐可以 docker 安装 xunsearch ,不用担心环境问题。

      评论 赞赏 2016-12-15

        @dryyun mac dorker下,按官方Dockerfile中也是报错

        docker run --name xunsearch -d \
        -p 8383:8383 -p 8384:8384 \
        -v /var/xunsearch/data:/usr/local/xunsearch/data \
        hightman/xunsearch:latest
        eeba65e82a78e1692e4454ead748e2384fb764d2fff05bca4dbd53a66a8f5c11
        docker: Error response from daemon: Mounts denied:
        The path /var/xunsearch/data
        is not shared from OS X and is not known to Docker.
        You can configure shared paths from Docker -> Preferences... -> File Sharing.
        See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.
        
        评论 赞赏 2018-11-23
          撰写回答

          登录后参与交流、获取后续更新提醒