解决在安装libevent时无法找到openssl的问题

2018-06-19  本文已影响0人  滴滴答答_e996

问题描述:

在make的时候提示入下错误

libevent-2.1.8-stable make

/Library/Developer/CommandLineTools/usr/bin/make  all-am

  CC      libevent_openssl_la-bufferevent_openssl.lo

bufferevent_openssl.c:66:10: fatal error: 'openssl/bio.h' file not found

#include

         ^~~~~~~~~~~~~~~

1 error generated.

make[1]: *** [libevent_openssl_la-bufferevent_openssl.lo] Error 1

make: *** [all] Error 2

解决方案:

在./configures时输入如下参数(其中CPPFLAGS中地址为openssl安装目录)

./configure --prefix=/usr/local CPPFLAGS="-I/usr/local/Cellar/openssl/1.0.2o_1/include" LDFLAGS="-I/usr/local/Cellar/openssl/1.0.2o_1/lib"

上一篇 下一篇

猜你喜欢

热点阅读