How to Install Erlang on Linux Mint 20
To Install Erlang on Linux Mint 20
Introduction:
Erlang is a programming language that is used to develop scalable soft real-time systems with specifications of high availability. It is used in telecoms, banking, e-commerce, computer telephony, and instant messaging. It is a general-purpose, concurrent, functional programming language, and a garbage-collected runtime system. This tutorial will cover the installation of Erlang on Linux Mint 20.
Installation Procedure:
First check the version of Linux Mint OS by executing the following command
root@LinuxHelp:~# lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description: Linux Mint 20
Release: 20
Codename: ulyana
Now download the Erlang package by using the following command
root@LinuxHelp:~# wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
--2020-12-29 14:39:02-- https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
Resolving packages.erlang-solutions.com (packages.erlang-solutions.com)... 99.86.7.121, 99.86.7.10, 99.86.7.111, ...
Connecting to packages.erlang-solutions.com (packages.erlang-solutions.com)|99.86.7.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6286 (6.1K)
Saving to: ‘erlang-solutions_1.0_all.deb’
erlang-solutions_1.0_all.deb 100%[===================================================>] 6.14K --.-KB/s in 0.003s
2020-12-29 14:39:03 (1.99 MB/s) - ‘erlang-solutions_1.0_all.deb’ saved [6286/6286]
Now install the Erlang package by using the following command
root@LinuxHelp:~# dpkg -i erlang-solutions_1.0_all.deb
Selecting previously unselected package erlang-solutions.
(Reading database ... 290347 files and directories currently installed.)
Preparing to unpack erlang-solutions_1.0_all.deb ...
Unpacking erlang-solutions (1.0) ...
Setting up erlang-solutions (1.0) ...
#deb cdrom:[Linux Mint 20 _Ulyana_ - Release amd64 20200624]/ focal contrib main
#This system was installed using small removable media
#(e.g. netinst, live or single CD). The matching "deb cdrom"
#entries were disabled at the end of the installation process.
#For information about how to configure apt package sources,
#see the sources.list(5) manual.
Now install the Erlang to execute the following command
root@LinuxHelp:~# apt-get install erlang
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
.
.
Setting up erlang-erl-docgen (1:22.2.7+dfsg-1) ...
Setting up erlang (1:22.2.7+dfsg-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for man-db (2.9.1-1) ...
Now check the version of erlang
root@LinuxHelp:~# erl
Erlang/OTP 22 [erts-10.6.4] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:1]
Now configure the linuxhelp.erl file by execute the following command
root@LinuxHelp:~# vim linuxhelp.erl
Once the configuration is completed then compile the linuxhelp.erl file by executing following command
root@LinuxHelp:~# erlc linuxhelp.erl
Finally execute the file by using following command
root@LinuxHelp:~# erl -noshell -s linuxhelp start -s init stop
Hello World!
With this method, the installation of the Erlang on Linux Mini 20 is comes to an end.
Comments ( 0 )
No comments available