Erlang and Elixir
As the admin user, install prerequisites for Erlang.
sudo apt install autoconf m4 libncurses5-dev
sudo apt install libwxgtk3.0-dev libgl1-mesa-dev libglu1-mesa-dev libpng3
sudo apt install libssh-dev
sudo apt install unixodbc-dev
You need a good way to install and control the version of both Erlang and Elixir. This guide uses asdf. (You should use it on your local as well!)
Switch to the builder user, and install asdf.
sudo su - builder
git clone https://github.com/asdf-vm/asdf.git ~/.asdf
echo '. $HOME/.asdf/asdf.sh' >> ~/.profile
echo '. $HOME/.asdf/completions/asdf.bash' >> ~/.profile
source ~/.profile
Install Erlang and Elixir. (Erlang will take a while)
Memory Requirement
Compiling Erlang is a memory-intensive task. You will likely need at least 1GB of RAM and/or a good swap configuration to take over if RAM runs out.
asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
asdf install erlang 19.0
asdf global erlang 19.0
asdf install elixir 1.3.1
asdf global elixir 1.3.1
Install Hex and Rebar.
mix local.hex
mix local.rebar