I am building Ruby 2.4 from source on OSX (not using a Ruby installer).
However, the resulting Ruby build does not include an openssl.bundle
. I assume this is because the system Openssl version on my OSX system is too old (OpenSSL 0.9.8zh 14 Jan 2016
).
I have an up to date OpenSSL (1.0.2) installed via homebrew, but for some reason the Ruby build process uses the old system version rather than the homebrew version.
I have tried brew link openssl
AND brew link openssl --force
but to no avail, every time I get the message:
Warning: Refusing to link: openssl
Linking keg-only openssl means you may end up linking against the insecure,
deprecated system OpenSSL while using the headers from Homebrew's openssl.
Instead, pass the full include/library paths to your compiler e.g.:
-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib
I am unsure what to do at this point. Could someone inform me how I can build Ruby 2.4 from source on OSX to link against my up to date homebrew version of openssl
so that I can have an openssl.bundle
in the resulting Ruby?
Thanks!