update to work with asdf-0.16 or newer
- Download the latest asdf
wget https://github.com/asdf-vm/asdf/releases/download/v0.18.0/asdf-v0.18.0-linux-amd64.tar.gz
- Extract the downloaded file
tar -xzf asdf-v0.18.0-linux-amd64.tar.gz
- Move to your local bin files
mv asdf .local/bin
- Add shims directory to path:
export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"
- Update profile:
source ~/.zshrc
- Install required dependencies
sudo apt update
sudo apt install -y \
autoconf \
automake \
build-essential \
libssl-dev \
libncurses-dev \
unzip \
openjdk-17-jdk
- Add as plugin and install the latest version:
# Install the elixir and erlang plugins
asdf plugin add elixir
asdf plugin add erlang
# Now install erlang
asdf install erlang latest
# And Elixir
asdf install elixir latest
# set current versions to asdf
asdf set -u erlang latest
asdf set -u elixir latest
# You can check that Elixir is installed with:
elixir -v
mix archive.install hex phx_new