Dorilds
Dorilds

Reputation: 448

Fatal Error: 'openssl/conf.h' file not found

I'm using a compiler to try to make a set of files I've been given and the line #include breaks with the error: Fatal Error: 'openssl/conf.h' file not found.

I've already installed openssl using brew, but it doesn't seem to work. Do I need to somehow connect openssl with my folder that I'm working in?

I'm on the newest mac OS sierra.

Upvotes: 4

Views: 11111

Answers (1)

Ortomala Lokni
Ortomala Lokni

Reputation: 62683

Running:

brew info openssl

gives the solution :

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include

Upvotes: 5

Related Questions