How to install Erlang & Elixir on Raspberry pi (Latest or any version)

A simple and working guide to install the latest or a specific version of Erlang on your Raspberry Pi.

Prudhvi
2 min readJul 21, 2024

Prerequisites:

  1. You need a Raspberry Pi with the Raspberry Pi OS operating system installed on it. If you haven’t installed an operating system on your Raspberry Pi yet, follow this guide.

Installation:

To access your Raspberry Pi, you can either open the terminal on the device using VNC Viewer or log in remotely using SSH on your computer.

Raspberry Pi Terminal
Remote terminal access to Raspberry Pi with SSH.

Execute the following commands one by one in your terminal:

sudo apt-get update
sudo apt-get install wget
sudo apt-get install libssl-dev
sudo apt-get install ncurses-dev

Now download the source code by running the following command:

wget http://www.erlang.org/download/otp_src_25.0.tar.gz

Note: This guide is for downloading Erlang OTP version 25.0.
To find the latest version or a specific version you prefer, visit the Erlang download page: https://www.erlang.org/downloads.

To download a different version, simply edit the version number in the above command. For example, to download OTP 24.2, change the command to:

wget http://www.erlang.org/download/otp_src_24.2.tar.gz

Now that you’ve downloaded the source code using the command above, let’s continue with the remaining steps. Remember to use the same version number throughout the following commands.

Note: The version number should match the one you downloaded

tar -xzvf otp_src_25.0.tar.gz 
cd otp_src_25.0/
./configure
make
sudo make install
cd ..
rm otp_src_25.0.tar.gz
sudo rm -R otp_src_25.0/

Compiling Erlang using make can take about 20 minutes or more. Once all the commands have been executed, the installation process will be complete. To verify your successful installation, launch Erlang/OTP from the command line by typing erl and pressing Enter. You should see output similar to the following:

That’s it! Erlang is successfully installed on your Raspberry Pi :)

--

--