mac配置libevet出现bufferevent_openssl.c:66:10: fatal error: ‘openssl/bio.h’ file not found

这两mac安装xunsearch服务器,编译报这个错bufferevent_openssl.c:60:10: fatal error: ‘openssl/bio.h’ file not found

解决方法:

在.bash_profile中配置环境变量加上下面两行,执行命令

echo  "export CPPFLAGS=-I/usr/local/opt/openssl/include"  >> ~/.bash_profile
echo  "export LDFLAGS=-L/usr/local/opt/openssl/lib"  >> ~/.bash_profile
source ~/.bash_profile