Erlang 24.0 Install Issues on Mac

Running

asdf install erlang 24.0

fails with the error

...
checking for OpenSSL header in /usr/local/opt/openssl@1.1... yes
checking for OpenSSL in /usr/local/opt/openssl@1.1... configure: error: static linking against crypto library disabled by user, but no dynamic library found in /usr/local/opt/openssl@1.1
ERROR: /Users/jimfreeze/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0/otp_src_24.0/lib/crypto/configure failed!

All the files seem to be present, so I am not understanding the error.

ls -alF /usr/local/opt/openssl@1.1/lib
-r--r--r--   1 jimfreeze  admin  2437024 May 20 06:54 libcrypto.1.1.dylib
-r--r--r--   1 jimfreeze  admin  4087072 Mar 25 09:28 libcrypto.a
lrwxr-xr-x   1 jimfreeze  admin       19 Mar 25 09:28 libcrypto.dylib@ -> libcrypto.1.1.dylib
-r--r--r--   1 jimfreeze  admin   502872 May 20 06:54 libssl.1.1.dylib
-r--r--r--   1 jimfreeze  admin   723992 Mar 25 09:28 libssl.a
lrwxr-xr-x   1 jimfreeze  admin       16 Mar 25 09:28 libssl.dylib@ -> libssl.1.1.dylib

I’m running macOS Catalina - 10.15.7 and have the following env var.

export KERL_BUILD_DOCS=yes
export KERL_INSTALL_MANPAGES=yes
export wxUSE_MACOSX_VERSION_MIN=11
export EGREP=egrep
export CC=clang
export CPP="clang -E"
export KERL_USE_AUTOCONF=0

export KERL_CONFIGURE_OPTIONS="--disable-debug \
                               --disable-hipe \
                               --disable-sctp \
                               --disable-silent-rules \
                               --enable-darwin-64bit \
                               --enable-dynamic-ssl-lib \
                               --enable-kernel-poll \
                               --enable-shared-zlib \
                               --enable-smp-support \
                               --enable-threads \
                               --enable-wx \
                               --with-ssl=$(brew --prefix openssl) \
                               --with-wx-config=/usr/local/bin/wx-config \
                               --without-javac \
                               --without-jinterface \
                               --without-odbc"

Has anyone run into these issues?

Answering my own question, I was able to use the advice from

Can't install Erlang-24 due to openssl issues · Issue #371 · kerl/kerl · GitHub

to do a real-time patch while Erlang was building. That worked for me.

Other patches are at

Building Erlang/OTP 24.0 on macOS 10.15.7 with Homebrew · GitHub

Thanks for all those who pointed me in the right direction.

4 Likes