Skip to content

Instantly share code, notes, and snippets.

@sammarxz
Last active December 15, 2024 16:39
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

  1. Clone de asdf
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v[latest-version]
  1. Add the asdf path to your bash/zsh profile
echo ". $HOME/.asdf/asdf.sh" >> ~/.bashrc # or ~/.zshrc
  1. Update your bash
source ~/.bashrc # or ~/.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
asdf global erlang latest

# And Elixir
asdf install elixir latest
asdf global 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