Programming Elixir

Installing Elixir on CentOS 7

Install dependencies

# yum update
# yum install epel-release
# yum groupinstall 'Development Tools'
# yum install gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git wget

Install Erlang

Instructions can be found here: https://www.erlang-solutions.com/resources/download.html.

Adding repository entry

# wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
# rpm -Uvh erlang-solutions-1.0-1.noarch.rpm

Install

# yum install esl-erlang

Verify installation

# erl

Install Elixir

Download sources

# mkdir /opt/elixir
# git clone -b v1.8 --single-branch https://github.com/elixir-lang/elixir.git /opt/elixir

Compile

# cd /opt/elixir
# make clean test

Add Elixir's bin path to your environment variables

Add the line below into ~/.bashrc :

# export PATH="$PATH:/opt/elixir/bin"

Verify installation

# elixir --version
# iex

Comments

Comments including links will not be approved.