Jekyll install - fatal error: ‘openssl/ssl.h’ file not found (macOS)

I am getting the following error when i try to install Jekyll. I’ve tried to install openssl to no avail.

In file included from binder.cpp:20:
./project.h:119:10: fatal error: ‘openssl/ssl.h’ file not found
#include <openssl/ssl.h>
^~~~~~~~~~~~~~~
1 error generated.
make: *** [binder.o] Error 1

make failed, exit code 2

I tried a lot of solutions, eventually this one worked for me:

You might first need to run:

brew link --force openssl

Then

gem install eventmachine -- --with-cppflags=-I/usr/local/opt/openssl/include