How to install Elixir in Manjaro Linux

Published on 2018 / 03 / 08

Table of contents

Installation process

I really like version managers for my dev languages.

I’ve been using asdf for installing Erlang and Elixir with OTP support.

Let’s start!

Clone the GitHub repository:

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

Add some lines to your .bashrc file:

echo -e '\n. $HOME/.asdf/' >> ~/.bashrc
echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc

Make changes to .bashrc effective or just close and open your terminal:

exec $SHELL

Finally install Erlang and Elixir:

asdf plugin-add erlang
asdf list-all erlang
asdf install erlang 20.2.4
asdf global erlang 20.2.4

asdf plugin-add elixir
asdf list-all elixir
asdf install elixir 1.6.2-otp-20
asdf global elixir 1.6.2-otp-20

To activate iex REPL history, add this to your .bashrc:

export ERL_AFLAGS="-kernel shell_history enabled"

If you are using this awesome editor (hint: Visual Studio Code), you should try the ElixirLS extension.


— lt

Feedback & comments

Get in touch on Twitter

Or by good ol' email at