fatal error: 'openssl/bio.h' file not found

Lewis-Eric picture Lewis-Eric · Oct 16, 2015 · Viewed 29k times · Source

I am trying to install Apache Thrift on my Mac, but am hitting an issue. I followed the installation steps on this page, but when I try to do the steps for installing libevent, I get the following error when running the make command:

fatal error because of 'openssl/bio.h' file not found

Screenshot of actual error

I've checked the version of openSSL I'm using, and it's "0.9.8zg"

Any advice on what I should do to fix this?

Answer

Simon Baudry picture Simon Baudry · Oct 24, 2016

I'm on El Capitan 10.11.6 and i had the issue while installing manually the mongodb php extension.

I solved it following the indications of @user7059092 about the configure stage :

$./configure LDFLAGS='-L/usr/local/opt/openssl/lib' CPPFLAGS='-I/usr/local/opt/openssl/include'