Installing the setup!

Read time: 3 minutes

#Installing the runtime

The first step will be to install Elixir and Erlang.

If you don't have either installed, we recommend that you use the asdf tool as it will make it easier to both install now and manage multiple versions of the tools in the future.

#Installing asdf

Using a terminal just run the command:

git clone ~/.asdf --branch v0.10.2

Once asdf has been cloned you need to add it to your shell profile.

If you use bash (you probably do 😉):

echo '. "$HOME/.asdf/"' >> ~/.bashrc
echo '. "$HOME/.asdf/completions/asdf.bash"' >> ~/.bashrc

If you use zshell the command would be:

echo '. "$HOME/.asdf/"' >> ~/.zshrc

Didn't find your shell here?

Navigate to list of examples and look for the your shell in the official guide

After installing everything, open a new terminal and check that it is installed using asdf version. The version of your asdf doesn't matter.

$ asdf version

#Installing Erlang

asdf works through plugins. You need to install the Erlang plugin to be able to install versions of them:

asdf plugin add erlang

Erlang can be very annoying to install

Depending on your operating system you may experience different headaches. I recommend taking a quick read this area if you ever have issues in the next step.

Let's install Erlang 26.2.2 and activate it globally.

asdf install erlang 26.2.2
asdf global erlang 26.2.2

#Installing Elixir

Unlike Erlang, this should be much simpler.

asdf plugin-add elixir
asdf install elixir 1.16.1-otp-26
asdf global elixir 1.16.1-otp-26


At this point you should be able to run the following command:

$ elixir --version
Erlang/OTP 26 [erts-14.2.2] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit]

Elixir 1.16.1 (compiled with Erlang/OTP 26)

Congratulations, you're ready to start tinkering with LiveView!


Got any feedback about this page? Let us know!