How to Install Erlang and Elixir on CentOS 7

r00t December 12, 2017

Install Erlang and Elixir on CentOS 7

In this tutorial we’ll learn how to install Erlang and Elixir on CentOS 7. 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 CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 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 CentOS 7

Step 1. First, ensure your system is fully up-to-date by running the following:

yum -y update
yum install epel-release

The next command will install the development tools we’ll need to install Erlang:

sudo yum install gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git

Step 2. Installing Erlang.

First, use the following commands to add erlang apt repository on RHEL based system:

sudo rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
sudo yum install erlang

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


Step 3. Installing Elixir.

First, Download and unzip the latest Elixir precompiled archive:

cd /usr/bin
sudo mkdir elixir
cd /usr/bin/elixir
sudo wget
sudo yum install unzip
sudo unzip

You can run Elixir commands by specifying the path of each Elixir-related command, such as:

/usr/bin/elixir/bin/elixir -v

Now, It is highly recommended to add Elixir’s bin path to your PATH environment variable. Otherwise, Elixir will not work:

nano /etc/profile

Append the following line to the end of the file:

export PATH="$PATH:/usr/bin/elixir/bin:/usr/bin/node-v6.1.0-linux-x64/bin"

Reload the profile:

source /etc/profile

To verify whether Elixir is installed or not, run:

elixir -v

Congratulation’s! You have successfully install and configured Erlang and Elixir on your CentOS 7 server. Thanks for using this tutorial for installing Erlang and Elixir on CentOS 7 system.

Leave a Comment

Comments are closed.