Struggling all to install Erlang, Elixir and Phoenix on redhat linux 7

It is a long while that I am reading about Phoenix framework, Elixir language and the wonders of the BEAM VM so three days ago I decided I read enough (almost six month reading…) and wanted to give it a try.

So far, it has been a real struggle to go beyond the installation of Erlang itself, no matter if I choose to install it on Centos 7 or Centos 8.
For Centos 7 I followed this link:
http://www.jeramysingleton.com/install-erlang-and-elixir-on-centos-7-minimal/
For Centos 8 I followed this other link:
https://computingforgeeks.com/how-to-install-latest-erlang-on-rhel-8/
In both cases I get to the point of installing Erlang correctly (I could use erl and compile the usual Hello World program).

BUT…

As soon I try to install Elixir I find myself with the same issue:

  • the installation ends with a compilation error that depending on the OS is pointing to different elements which are missing.

I am attaching the two results of both Centos 7 and Centos 8 Elixir installation hoping someone cna allow me to understand if and what I was doing wrong.

I also summarize the commands I was using to install Erlang, since I am assuming that it is where things are getting wrong maybe for some missing package:

-CENTOS7-
ERLANG
yum install epel-release
yum -y update && yum -y upgrade
yum install gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git
yum install wxBase.x86_64
wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
yum install esl-erlang

-CENTOS8-
ERLANG
export VER=“22.1.6”
wget https://github.com/rabbitmq/erlang-rpm/releases/download/v${VER}/erlang-${VER}-1.el8.x86_64.rpm
yum localinstall erlang-${VER}-1.el8.x86_64.rpm
nano ~/.bashrc
export PATH="$PATH:/usr/lib64/erlang/bin/"

-BOTH OS-
ELIXIR
cd /opt
yum install git
git clone https://github.com/elixir-lang/elixir.git
cd elixir/
make clean test