Skip to content

Instantly share code, notes, and snippets.

@sammarxz
Last active August 4, 2025 16:47
Show Gist options
  • Save sammarxz/844959258190c5ca44cc9cb2ac46c009 to your computer and use it in GitHub Desktop.
Save sammarxz/844959258190c5ca44cc9cb2ac46c009 to your computer and use it in GitHub Desktop.
Elixir install steps on Ubuntu 22.04.5 LTS

Elixir install guide

update to work with asdf-0.16 or newer

  1. Download the latest asdf
wget https://github.com/asdf-vm/asdf/releases/download/v0.18.0/asdf-v0.18.0-linux-amd64.tar.gz
  1. Extract the downloaded file
tar -xzf asdf-v0.18.0-linux-amd64.tar.gz                                                                           
  1. Move to your local bin files
mv asdf .local/bin
  1. Add shims directory to path:
export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"
  1. Update profile:
source ~/.zshrc
  1. Install required dependencies
sudo apt update
sudo apt install -y \
  autoconf \
  automake \
  build-essential \
  libssl-dev \
  libncurses-dev \
  unzip \
  openjdk-17-jdk
  1. 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

Configure Phoenix:

mix archive.install hex phx_new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment