Installing Elixir on Ubuntu 13.04

I just installed Elixir and there were one or two non-obvious points.

Elixir requires Erlang OTP 16, and the Ubuntu package repos contain release 15. So the Ubuntu Erlang packages won’t cut it.

Instead, install Erlang from the Erlang Solutions repository. Add this to your /etc/apt/sources.list (GUI: from the Ubuntu Software Center: Edit->Software Sources->Other Software->Add…).

deb raring contrib

The Erlang Solutions page only lists sources up to “quantal”, but I tried “raring” and it works fine.

Also add the relevant public key:

wget -O - \
| sudo apt-key add -

(That’s copied directly from the Erlang Solutions site)

Then update and install. Be sure to install esl-erlang rather than the erlang package provided by Ubuntu.

sudo apt-get update
sudo apt-get install esl-erlang

After that you can just follow the instructions for compiling on the Elixir home page.