configure: error: openssl is a must but can not be found. You should add the directory containing `openssl.pc' to the `PKG_CONFIG_PATH' environment variable, or set `CFLAGS' and `LDFLAGS' directly for openssl, or use `--disable-openssl' to disable support for openssl encryption
当在安装libevent时遇到这个错误,在此之前已成功安装openssl。
解决办法:
1.执行 find / -name openssl.pc
得到 /usr/local/openssl/lib64/pkgconfig/openssl.pc
2.执行 export PKG_CONFIG_PATH=/usr/local/openssl/lib64/pkgconfig/
即可完成