Don’t know if this will work for you but this is how I got erlang installed on a clean apple silicon machine running Big Sur:
- install homebrew
- brew install autoconf wxmac openssl
- brew install asdf (then add asdf to .zshrc as per the output of the brew install command)
Then to install erlang:
export KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl@1.1)"
asdf install erlang <version>