{"id":11749,"date":"2022-03-01T22:35:23","date_gmt":"2022-03-01T19:35:23","guid":{"rendered":"https:\/\/kifarunix.com\/?p=11749"},"modified":"2024-03-09T11:17:10","modified_gmt":"2024-03-09T08:17:10","slug":"install-erlang-on-ubuntu","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-erlang-on-ubuntu\/","title":{"rendered":"Install Erlang on Ubuntu 22.04\/Ubuntu 20.04"},"content":{"rendered":"\n

This tutorial provides a step-by-step guide on how to install Erlang on Ubuntu 22.04\/Ubuntu 20.04. According to erlang.org<\/a>, Erlang is a programming language used to build massively scalable soft real-time systems with requirements on high availability. Some of its uses are in telecoms, banking, e-commerce, computer telephony and instant messaging. Erlang’s runtime system has built-in support for concurrency, distribution and fault tolerance. <\/em><\/p>\n\n\n\n

Install Erlang on Ubuntu 22.04\/Ubuntu 20.04<\/h2>\n\n\n\n

There are two way to install Erlang:<\/p>\n\n\n\n

    \n
  1. Install Erlang using Prebuilt binaries<\/a><\/li>\n\n\n\n
  2. Install Erlang by compiling from the source<\/a><\/li>\n<\/ol>\n\n\n\n

    Install Erlang using Prebuilt binaries<\/h3>\n\n\n\n

    The default Ubuntu repositories provides Erlang packages. However, the available packages may not be up-to-date.<\/p>\n\n\n\n

    Erlang\/OTP 24.2.2 is the the current release versions as of this writing.<\/p>\n\n\n\n

    Install Erlang on Ubuntu 22.04 using Prebuilt binaries<\/a><\/h4>\n\n\n\n

    The default Ubuntu 22.04 repos provides version 24.2.1;<\/p>\n\n\n\n

    apt-cache policy erlang<\/code><\/pre>\n\n\n\n
    erlang:\n  Installed: (none)\n  Candidate: 1:24.2.1+dfsg-1\n  Version table:\n     1:24.2.1+dfsg-1 500\n        500 http:\/\/ke.archive.ubuntu.com\/ubuntu jammy\/universe amd64 Packages\n<\/code><\/pre>\n\n\n\n

    Thus, if you want to install Erlang on Ubuntu 22.04 using the prebuild binary, run the command below;<\/p>\n\n\n\n

    apt install erlang<\/code><\/pre>\n\n\n\n

    The Erlang distribution also includes OTP (Open Telecom Platform) which provides a rich set of libraries and applications.<\/p>\n\n\n\n

    To install Erlang on Ubuntu 20.04 using Prebuilt binaries<\/a><\/h4>\n\n\n\n

    To install latest release version of Erlang on Ubuntu 20.04, you first need to install the Erlang repository as follows;<\/p>\n\n\n\n

    wget https:\/\/packages.erlang-solutions.com\/erlang-solutions_2.0_all.deb<\/code><\/pre>\n\n\n\n
    apt install .\/erlang-solutions_2.0_all.deb<\/code><\/pre>\n\n\n\n
    apt update<\/code><\/pre>\n\n\n\n
    apt install erlang<\/code><\/pre>\n\n\n\n

    Similarly, the Erlang distribution also includes OTP (Open Telecom Platform) which provides a rich set of libraries and applications.<\/p>\n\n\n\n

    Install Erlang by Compiling from the source<\/h3>\n\n\n\n

    If you want to run the latest version of Erlang on Ubuntu 22.04\/Ubuntu 20.04, then you can build it from the source.<\/p>\n\n\n\n