Mac OS X安装libevent库报Install libevent bufferevent_openssl.c:60:10: fatal error: 'openssl/bio.h' file
编译 libevent(源文件在/Users/carl/Downloads/libevent-2.1.8-stable),执行make命令是,报 Install libevent bufferevent_openssl.c:60:10: fatal error: 'openssl/bio.h' file 第一反应,感觉是不是 openssl版本太低了。 1. 查看openssl版本,发现版本比较低 $ openssl version OpenSSL 0.9.8zh 14 Jan 2016 2. 升级spenssl,执行 brew install openssl 输出(前面的输出忽略)如下: ==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2l.sierra.bottle.tar.gz ######################################################################## 100.0% ==> Pouring openssl-1.0.2l.sierra.bottle.tar.gz ==> Caveats A CA file has been bootstrapped using certificates from the SystemRoots keychain. To add additional certificates (e.g. the certificates added in the System keychain), place .pem files in /usr/local/etc/openssl/certs and run /usr/local/opt/openssl/bin/c_rehash This formula is keg-only, which means it was not symlinked into /usr/local, because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto librarie...