How to Install Erlang and Elixir on Ubuntu 16.04

r00t December 14, 2017

Install Erlang and Elixir on Ubuntu 16.04

In this tutorial we will show you how to install Erlang and Elixir on Ubuntu 16.04. We will also install and configure its prerequisites. Erlang is a free source programming language to build adaptable soft real time systems with high availability. This can be used in telecoms, PC telephony, banking, e-commerce and instant messaging. It is widely used due to its fault tolerance, concurrency and distribution. Elixir is a lively, functional language designed for building scalable and maintainable software.

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Erlang and Elixir on Ubuntu 16.04

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

apt-get update -y
apt-get upgrade -y

Step 2. Installing Erlang.

First, Install needed system packages to install Erlang:

sudo apt-get install build-essential git wget libssl-dev libreadline-dev libncurses5-dev zlib1g-dev m4 curl wx-common libwxgtk3.0-dev autoconf

Next, install Erlang using following command:

wget && sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get install esl-erlang

Run the following command to verify whether Erlang is installed or not:


Step 3. Installing Elixir.

To run Elixir from source, clone this repository to your machine and compile:

git clone
cd elixir
make clean test

On Ubuntu systems, you need to find your shell profile file, and then add to the end of this file the following line reflecting the path to your Elixir installation:

export PATH="$PATH:/path/to/elixir/bin"

To verify whether Elixir is installed or not, run:

elixir --version

Congratulation’s! You have successfully install and configured Erlang and Elixir on your Ubuntu 16.04 server. Thanks for using this tutorial installing Erlang and Elixir on Ubuntu 16.04 LTS (Xenial Xerus) system.

Leave a Comment

Comments are closed.