• 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 Debian 9 & Debian 8

Written by Rahul, Updated on April 18, 2018
Debian erlang, programming

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 Debian 9 (Stretch) and Debian 8 (Jessie).

Step 1 – Prerequsiteis

Before starting the installation process make sure you have root or sudo privileged user access to your Debian system. Now login to your system:

ssh [email protected]

Upgrade the current packages to the latest version.

sudo apt update
sudo apt upgrade

Step 2 – Enable Erlang Repository

Use the following commands to add Erlang apt repository on your system, Which is required to install Erlang on a Debian VPS. Simply download erlang repository package from its official website and install on your system.

wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb

Step 3 – Install Erlang on Debian

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

sudo apt-get update
sudo apt-get install erlang

Step 4 – Hello World Example

This is a simple hello world program written in Erlang. Create a file helloworld.erl with following content.

vi helloworld.erl

add the following contnet.

% 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 Erlang on Fedora 28/27/26

    November 25, 2018
  • How to Install Swift on Ubuntu 16.04 LTS

    December 24, 2017
  • How to Install Erlang on CentOS/RHEL 7/6

    May 10, 2017
  • How to Install Erlang on Ubuntu 18.04 & 16.04 LTS

    May 6, 2017
  • How to Compare two Strings in Java

    October 9, 2015

Leave a Reply

Cancel reply

Popular Posts

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