• Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

How to Install Erlang on Fedora 28/27/26

Written by Rahul, Updated on December 6, 2018
Programming erlang, fedora

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 28/27/26/25/24 operating system.

  • How to Install Erlang on Ubuntu

Step 1 – Install Erlang on Fedora

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

sudo dnf install erlang

Step 2 – Check Erlang Version

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

erl 
Output
Erlang/OTP 20 [erts-9.3.3.6] [source] [64-bit] [smp:3:3] [ds:3:3:10] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V9.3.3.6  (abort with ^G)
1>

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

Step 3 – Erlang Hello World Program

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

vi 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/

Share it!
Share on Facebook
Share on Twitter
Share on Google+
Share on Reddit
Share on Tumblr
Rahul
Rahul
Connect on Facebook Connect on Twitter Connect on Google+

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..

Related Posts

  • How to Install Sendmail on Fedora 29/28/27

    February 11, 2019
  • How to Check IP Address on Fedora Desktop 29/28/27

    February 7, 2019
  • How to Configure Static IP Address on Fedora Desktop

    February 7, 2019
  • How To Install Docker on Fedora 29/28/27

    January 18, 2019
  • Download Fedora 29 – DVD ISO Images

    January 1, 2019

Leave a Reply

Cancel reply

Popular Posts

  • How To Install Zabbix Agent on Debian 9/8
  • How to Install and Configure Squid Proxy on Debian 9
  • How To Install Wine 3 on Debian 9 (Stretch)
  • How to Remove “public/index.php” from URL in Laravel
  • How to Install Swift on Ubuntu 18.04 LTS
All rights reserved. © 2013-2018 TecAdmin.net. This site uses cookies. By using this website you agree our term and services