Step 1 – Adding Repository

First, use the following commands to add erlang apt repository on your system. You can simply download erlang repository package from its official website and install on your system.

Step 2 – Install Erlang on Ubuntu

Now, you can install an erlang package on your system using the following command. This will install all of its dependencies as well. Alternatively, you can do the complete erlang installation. It includes the Erlang/OTP platform and all of its applications.

Step 3 – Erlang Hello World Program

Let’s start with hello world program on erlang. First create file helloworld.erl with following content. add the following contnet. Now compile the hello world program using below command. The above command will create a file helloworld.beam in the current directory. You can run your program now. Reference: https://packages.erlang-solutions.com/erlang/