Trouble installing Erlang via asdf on new M2 mac

Thank you for the suggestion. I tried it again with the above options, but it failed:

➜  ~ export KERL_CONFIGURE_OPTIONS="--disable-debug --disable-silent-rules --without-javac --enable-shared-zlib --enable-dynamic-ssl-lib --enable-threads --enable-kernel-poll --enable-wx --enable-webview --enable-darwin-64bit --enable-gettimeofday-as-os-system-time"
➜  ~ asdf install erlang latest
asdf_26.2.1 is not a kerl-managed Erlang/OTP installation
The asdf_26.2.1 build has been deleted
Extracting source code
Building Erlang/OTP 26.2.1 (asdf_26.2.1), please wait...
APPLICATIONS DISABLED (See: /Users/serguei/.asdf/plugins/erlang/kerl-home/builds/asdf_26.2.1/otp_build_26.2.1.log)
 * jinterface     : Java compiler disabled by user
 * odbc           : ODBC library - link check failed

Build failed.
      _gen_digest in libei.a[2](ei_connect.o)
      _gen_digest in libei.a[2](ei_connect.o)
      _recv_challenge_ack in libei.a[2](ei_connect.o)
      _recv_challenge_ack in libei.a[2](ei_connect.o)
      ...
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/Users/serguei/.asdf/plugins/erlang/kerl-home/builds/asdf_26.2.1/otp_src_26.2.1/lib/erl_interface/bin/aarch64-apple-darwin23.2.0/erl_call] Error 1
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [erl_interface] Error 2

Please see /Users/serguei/.asdf/plugins/erlang/kerl-home/builds/asdf_26.2.1/otp_build_26.2.1.log for full details.
Removing all artifacts except the logfile
(Use KERL_AUTOCLEAN=0 to keep build on failure, if desired)
Cleaning up compilation products for asdf_26.2.1
Cleaned up compilation products for asdf_26.2.1 under /Users/serguei/.asdf/plugins/erlang/kerl-home/builds

Maybe later on, I’ll uninstall the previously installed Erlang versions and try to install the latest first.