Install Erlang and Elixir on Rocky Linux (CentOS/RHEL)
For several years I have heard about these two languages, Erlang and Elixir, and this week I thought it’ll be worth to try them. So, first things first, let start installing them in my machine. So, normally the installation process on Linux should be straight forward, as in the documentation (1,2), but for Rocky Linux and other RedHat based distros you need a couple of steps more in order to add a repository from Erlang Solutions.
wget https://packages.erlang-solutions.com/erlang-solutions-2.0-1.noarch.rpm
sudo dnf localinstall erlang-solutions-2.0-1.noarch.rpm
sudo dnf update
sudo dnf install erlang elixir
And later we can try the languages typing their interactive interpreters, erl
for Erlang:
$ erl
Erlang/OTP 24 [erts-12.1.5] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit]
Eshell V12.1.5 (abort with ^G)
1>
and iex
for Elixir:
$ iex
Erlang/OTP 24 [erts-12.1.5] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit]
Interactive Elixir (1.13.0) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)>
See you next time.