Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Programming»How to Install Erlang on CentOS/RHEL 7/6

    How to Install Erlang on CentOS/RHEL 7/6

    RahulBy RahulMay 10, 20172 Mins ReadUpdated:December 1, 2018

    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 CentOS/RHEL 7/6 operating system.

    • How to Install Erlang on Ubuntu

    Step 1 – Setup Yum Repository

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

    sudo yum install epel-release
    wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
    sudo rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
    

    Step 2 – Install Erlang

    Now, you can install erlang package on your system using the following command. This will install all of its dependencies as well.

    sudo yum install erlang
    

    Alternatively, you can do the complete Erlang installation. It includes the Erlang/OTP platform and all of its applications.

    sudo yum install esl-erlang
    

    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/

    erlang programming
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Find Currently Running Query in SQL Server
    Next Article How to Install and Use Imapsync on Ubuntu & Debian

    Related Posts

    How to Replace String in JavaScript

    Updated:June 13, 20222 Mins Read

    How to Install JAVA on Ubuntu 22.04

    Updated:May 16, 20224 Mins Read

    How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04

    Updated:June 19, 20223 Mins Read

    How To Install Node.js on Ubuntu 22.04

    Updated:May 27, 20223 Mins Read

    How To Install NVM on Ubuntu 22.04

    Updated:April 16, 20223 Mins Read

    How To Install Linux, Nginx, MySQL, & PHP (LEMP Stack) on Ubuntu 22.04

    Updated:April 7, 20227 Mins Read

    1 Comment

    1. Vinicius on June 13, 2018 12:39 pm

      You sir, are awesome. Thank you very much.

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • What is the /etc/nsswitch.conf file in Linux
    • How to Install Ionic Framework on Ubuntu 22.04
    • What is the /etc/hosts file in Linux
    • How to Install Angular CLI on Ubuntu 22.04
    • How to Install Composer on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.