How Do You Install Erlang on a Debian/Ubuntu Server?

Problem scenario
You want to install Erlang on a Debian or Ubuntu Server (e.g., Linux Mint or Kali Linux). What should you do?

Run this script with sudo (e.g., sudo bash /tmp/

# Written by

echo "This script can take 20 minutes to run"
apt -y update
apt -y install autoconf 
apt -y install libncurses5-dev 
apt -y install libncursesw5-dev
apt -y install gcc
apt -y install python3
apt -y install make
cd /bin/
git clone
cd otp
./otp_build autoconf
echo "This next portion may take 15 minutes"
date > /tmp/datetime.txt
make install
ln -s /usr/local/lib/erlang/bin/erl /usr/bin/erl
ln -s /usr/local/bin/erlc /usr/bin/erlc
ln -s /etc/alternatives/python3 /usr/bin/python
echo "Script run completed."
echo " "
echo "Many errors above (if there are any) may be ignorable"
echo "try the 'erl' command with no quotes to see if Erlang was installed"
echo 'If you get to a carrot prompt, use Ctrl-c, then type the "a" key and then press Enter.'

Leave a comment

Your email address will not be published. Required fields are marked *