Contents

MacOS Sonoma: Ruby & OpenSSL Is Not Available [SOLVED]

Contents

I was getting this when trying to bundle on MacOS Sonoma:

shell

OpenSSL is not available. Install OpenSSL and rebuild Ruby (preferred) or use non-HTTPS sources

Ruby can’t seem to find OpenSSL libs, so it’s needed to prefix the install with paths. First, double check this openssl directory do actually exist: ls /usr/local/opt/openssl@1.1/

shell

rvm autolibs homebrew
PKG_CONFIG_PATH=/usr/local/opt/openssl@1.1/lib/pkgconfig rvm reinstall 3.0.6 --with-openssl --with-openssl-lib=/usr/local/opt/openssl@1.1/lib --with-openssl-include=/usr/local/opt/openssl@1.1/include
rvm use 3.0.6

Links:

Second Head Post
This is a post from Second Head. So please, don’t expect too much.

Related Content