SRC: https://elixirforum.com/t/cannot-install-asdf-erlang-24-1-on-macos-big-sur/42680/4
asdf plugin add erlang
Make sure you have the following dependencies installed:
brew install autoconf wxmac openssl
I used the following env vars(I added to .zshrc):
export CFLAGS="-O2 -g -fno-stack-check"
export KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix [email protected])"
asdf install erlang latest
It was much simpler for me to to install an older version of erlang with brew and manually load it into asdf.
Here's what I did:
brew install erlang@22
cp -r /opt/homebrew/opt/erlang@22/lib/erlang ~/.asdf/installs/erlang/22.3.4.21
asdf reshim erlang 22.3.4.21
It just works!
Follow instructions at https://github.com/asdf-vm/asdf-nodejs
- make sure to install the dependencies
NOTE: versions below 16.x.x aren't supported by asdf nodejs on arm64 yet... see below
SRC: asdf-vm/asdf-nodejs#189 (comment)
Use Rosetta 2!!
arch -x86_64 asdf install nodejs <OLD_NODE_VERSION>
brew install openjdk
I needed to add openjdk to my path: export PATH="$(brew --prefix openjdk)/bin:$PATH"