OTP 24.1 on MacOS 11.6 M1 - openssl issue

I was just trying to install OTP 24.1 using asdf on my MacBook Air (M1) and ran into the following issue.

The installation complained that crypto, ssh and ssl were disabled due to “No usable OpenSSL found”.
I immediately installed openssl through homebrew, but the newly installed openssl@3 is not compatible, it fails with numerous deprecated functions.

I tried to brew link openssl@1.1, but homebrew refuses to do that.

So this worked:

KERL_CONFIGURE_OPTIONS=--with-ssl=“/opt/homebrew/opt/openssl@1.1” asdf install erlang 24.1

7 Likes