Skip to content

How To Install Erlang on Fedora 35/34/33

Install Erlang on Fedora. This tutorial will help you to install erlang on Fedora 34/33/32/31/30 system. Installing Erlang on Fedora.

Steps
3
Category
Programming
Covers
erlang, fedora
Advertisement
On this page 3 steps

Erlang is a programming language used to build massively scalable soft real-time systems with requirements on high availability. Erlang runtime system has built-in support for concurrency, distribution and fault tolerance.

This tutorial will help you to install erlang on Fedora Linux systems.

Step 1 of 3Install Erlang on Fedora

Erlang is available under the default repositories. You can simply install the erlang package on your system and run running the following command. This will install other required libraries as well.

sudo dnf install erlang 

Step 2 of 3Check Erlang Version

Type erl on the terminal. This will open the Erlang shell and show you the version.

erl  
Output
Erlang/OTP 23 [erts-11.2.2.2] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:1] [hipe]

Eshell V11.2.2.2  (abort with ^G)

Press CTRL + C twice to exit from the Erlang shell.

Advertisement

Step 3 of 3Erlang Hello World Program

Let’s start with hello world program on erlang. First create file helloworld.erl with following content.

nano helloworld.erl 

add the following contnet.

helloworld.erl
% hello world program -module(helloworld). -export([start/0]). start() -> io:fwrite("Hello World!\n").

Now compile the hello world program using below command.

erlc helloworld.erl 

The above command will create a file helloworld.beam in the current directory. You can run your program now.

erl -noshell -s helloworld start -s init stop 

Hello World!

Reference:
https://packages.erlang-solutions.com/erlang/

Rahul

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

Leave a Reply

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


Back to top