I am working on a C++ project which uses boost asio. Trying to build the libraries that use Asia, I am getting the following error
/usr/local/include/boost/asio/ssl/detail/openssl_types.hpp:19:10: fatal error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
Looking of solutions here & here, I tried
brew install openssl
brew link openssl --force
xcode-select --install
But didn't help.
Doing the following also doesn't seem to work
export C_INCLUDE_PATH=/usr/local/include
export CPLUS_INCLUDE_PATH=/usr/local/include
Boost version I am using is boost_1_63_0
. I am on MacOS Sierra
with Xcode 8.3.1
. I have installed boost using Homebrew
brew install boost
As I understand from other links, Xcode is looking at the wrong place for ssl headers. But how can I resolve this?
I looked into my /usr/local/include
& /opt/local/include
. 'openssl/ssl.h' is not present in either locations. But doing a brew install openssl
says the following
Warning: openssl is a keg-only and another version is linked to opt.
Use `brew install --force` if you want to install this version
Doing a brew install openssl --force
says
Warning: openssl-1.0.2k already installed, it's just not linked.
Doing brew link openssl --force
also doesn't solve the issue.
Doig a which openssl
returns the following:
/usr/local/bin/openssl
Please suggest