问题描述:
在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"
网友评论