I am getting this when I do asdf erlang install 24.0:
Configure failed.
checking for compiler flags for loadable drivers... -Werror=undef -Werror=implicit -Werror=return-type -Wdeclaration-after-statement -Wall -Wstrict-prototypes -Wmissing-prototypes -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -fno-common -g -O2 -fPIC -fno-common
checking for linker for loadable drivers... gcc
checking for linker flags for loadable drivers... -m64 -bundle -bundle_loader /Users/dimi/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0/otp_src_24.0/bin/x86_64-apple-darwin20.4.0/beam.smp
checking for 'runtime library path' linker flag... not found
checking for multiarch directory... not found
checking size of void *... (cached) 8
checking for static zlib... no
checking for OpenSSL header in /usr/local/opt/openssl@1.1... yes
checking for OpenSSL in /usr/local/opt/openssl@1.1... configure: error: neither static nor dynamic crypto library found in /usr/local/opt/openssl@1.1
ERROR: /Users/dimi/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0/otp_src_24.0/lib/crypto/configure failed!
Latest macOS and I am pretty sure I have libraries here: /usr/local/opt/openssl@1.1/lib (notice the trailing /lib) so maybe the script is looking in the wrong place?
How can I check? I have a daily CRON script that updates asdf itself and all installed plugins so I shouldn’t be using anything old there. But as for kerl itself, no idea how to check?
I have finished reading the release notes. This section seems to be relevant:
OTP-16882 Application(s): crypto
Add /usr/local/opt/openssl to the openssl configure
search path. This path is where some tools on OS X
place openssl.
OTP-17254 Application(s): crypto, erts
Related Id(s): ERIERL-618, GH-4230
The configure scripts in crypto and erts now fail if a
requested feature cannot be enabled.
Large parts of the configure script of crypto have been
rewritten with various improvements and bug fixes. It
is now better at finding usable OpenSSL libraries, but
will in the following cases fail to detect OpenSSL
libraries where it previously sometimes detected the
libraries by chance:
-- OpenSSL installations with include directory and lib
directory parts installed in different base
directories. In order to detect such installations
after this change, the user must explicitly specify the
locations using the --with-ssl=<path> and the
--with-ssl-incl=<path> configure command line
arguments.
-- When building with old gcc compilers or other
compilers on Debian derivatives with multiarch
directories under the lib directory. In order to detect
such installations after this change, the user must
explicitly specify the multiarch directory name using
the --with-ssl-lib-subdir=lib/<multiarch-dir> configure
command line argument.
After scanning the forum and reminding myself of how I was doing things in the past (when straight up asdf install didn’t work), I ended up doing this (and a few variations) but it didn’t work either:
$ KERL_CONFIGURE_OPTIONS="--with-ssl=$(brew --prefix openssl)/lib --with-ssl-incl=$(brew --prefix openssl)/include/openssl --enable-dynamic-ssl-lib --enable-wx" asdf install erlang 24.0
asdf_24.0 is not a kerl-managed Erlang/OTP installation
The asdf_24.0 build has been deleted
Extracting source code
Building Erlang/OTP 24.0 (asdf_24.0), please wait...
Configure failed.
checking for basic compiler flags for loadable drivers... -fno-common -g -O2 -fPIC -fno-common
checking for compiler flags for loadable drivers... -Werror=undef -Werror=implicit -Werror=return-type -Wdeclaration-after-statement -Wall -Wstrict-prototypes -Wmissing-prototypes -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -fno-common -g -O2 -fPIC -fno-common
checking for linker for loadable drivers... gcc
checking for linker flags for loadable drivers... -m64 -bundle -bundle_loader /Users/dimi/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0/otp_src_24.0/bin/x86_64-apple-darwin20.4.0/beam.smp
checking for 'runtime library path' linker flag... not found
checking for multiarch directory... not found
checking size of void *... (cached) 8
checking for static zlib... no
checking for OpenSSL header in /usr/local/opt/openssl@1.1/include... configure: error: no OpenSSL header found in /usr/local/opt/openssl@1.1/include
ERROR: /Users/dimi/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0/otp_src_24.0/lib/crypto/configure failed!
Please see /Users/dimi/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0/otp_build_24.0.log for full details.
$ KERL_CONFIGURE_OPTIONS="--disable-parallel-configure" asdf install erlang 24.0
asdf_24.0 is not a kerl-managed Erlang/OTP installation
The asdf_24.0 build has been deleted
Extracting source code
Building Erlang/OTP 24.0 (asdf_24.0), please wait...
APPLICATIONS INFORMATION (See: /Users/dimi/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0/otp_build_24.0.log)
* wx : wxWidgets was not compiled with --enable-webview or wxWebView developer package is not installed, wxWebView will NOT be available
Build failed.
ERLC ../ebin/crypto_ec_curves.beam
VSN ../ebin/crypto.app
VSN ../ebin/crypto.appup
MAKE opt
make[4]: x86_64-apple-darwin20.4.0/Makefile: No such file or directory
make[4]: *** No rule to make target `x86_64-apple-darwin20.4.0/Makefile'. Stop.
make[3]: *** [opt] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2
Please see /Users/dimi/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0/otp_build_24.0.log for full details.
Macos 10.15.7 here. Build fails for both normal asdf install and using the suggested KERL_CONFIGURE_OPTIONS. I could install all the RC versions using asdf without any problems.