Erlang/OTP http://erlang.org
  • Erlang 70.9%
  • C 17.2%
  • C++ 8.2%
  • Makefile 0.8%
  • Shell 0.6%
  • Other 2.1%
Find a file
2026-02-27 11:10:45 +01:00
.devcontainer Update copyright year 2025-04-16 09:08:50 +02:00
.github Merge branch 'maint' 2026-02-26 20:11:17 +01:00
.ort/config update SPDX SBOM to 2.3 2025-12-02 09:25:47 +01:00
bin The R13B03 release. 2009-11-20 14:54:40 +00:00
bootstrap Merge branch 'maint' 2026-02-18 14:26:51 +01:00
erts Merge branch 'maint' into master 2026-02-27 10:50:45 +01:00
FILE-HEADERS update SPDX SBOM to 2.3 2025-12-02 09:25:47 +01:00
HOWTO adds SBOM documentation and verification of sbom 2025-09-22 10:25:03 +02:00
lib Merge pull request #10753 from RaimoNiskanen/raimo/tftp/rewrite-legacy-catch/OTP-19996 2026-02-27 11:10:45 +01:00
LICENSES add SGI-B-2.0 license to licenses folder 2025-08-14 12:45:11 +02:00
make Merge branch 'maint-28' into maint 2026-02-27 10:50:27 +01:00
plt The R13B03 release. 2009-11-20 14:54:40 +00:00
scripts Merge pull request #10679 from jhogberg/john/erts/merge-asmjit-v1.18-to-master 2026-02-12 10:50:29 +01:00
system/doc Fix unused variable warning in tut14 example 2026-02-25 15:01:24 +05:30
vex otp: add auto-generated OpenVEX CVE 2026-02-25 12:21:41 +01:00
xcomp gh: Fail macos build on build-step failure 2025-08-14 16:58:33 +02:00
.dir-locals.el Update copyright year 2025-04-16 09:08:50 +02:00
.editorconfig Update copyright year 2025-04-16 09:08:50 +02:00
.elp.toml Update copyright year 2025-04-16 09:08:50 +02:00
.formatter.exs otp: Fix copyright headers to use the same format 2025-04-04 10:41:25 +02:00
.gitattributes Stop including in .gitignore files in the source tar files 2010-08-18 08:48:09 +02:00
.gitignore Merge branch 'maint' 2025-12-15 13:29:06 +01:00
.gitpod.yml Update copyright year 2025-04-16 09:08:50 +02:00
.mailmap ycf: Standardize and fix license headers 2025-04-04 10:45:09 +02:00
.ort.yml fix licenses for wx gen files 2025-08-14 12:45:11 +02:00
AUTHORS otp: Add license header to all AUTHOR files 2025-04-04 10:45:09 +02:00
configure Update copyright year 2025-04-16 09:08:50 +02:00
configure.src Update copyright year 2025-04-16 09:08:50 +02:00
CONTRIBUTING.md otp: sbom adds comment to license files 2025-05-19 12:55:47 +02:00
erl-build-tool-vars.sh Update copyright year 2025-04-16 09:08:50 +02:00
erlang_ls.config otp: Standardize all license headers for files in src and include 2025-04-04 10:42:48 +02:00
LICENSE.txt Change license text to APLv2 2015-06-18 11:31:02 +02:00
Makefile.in Update copyright year 2026-02-11 10:55:17 +01:00
otp_build otp: Fix otp_build to respect TYPE and FLAVOR 2025-06-17 13:30:59 +02:00
otp_patch_apply otp: Fix patch apply to work on vsn files with comments 2025-06-16 16:11:20 +02:00
OTP_VERSION Updated OTP version 2026-02-26 18:14:09 +01:00
otp_versions.table Merge branch 'maint-28' into maint 2026-02-27 10:50:27 +01:00
prebuild.delete gh: Use prebuilt as cache to speedup build 2022-10-18 12:23:14 +02:00
prebuild.skip OTP-8323 Cross compilation improvements and other build system 2010-02-03 19:04:55 +01:00
README.md otp: Update license header to include spdx-license-identifier 2025-04-04 10:42:45 +02:00
renovate.json5 Merge branch 'maint' 2026-02-20 12:58:28 +01:00
SECURITY.md Fix typo in SECURITY.md 2025-12-07 14:13:06 -05:00
TAR.include Move README and INSTALL to HOWTO folder 2012-07-19 12:24:40 +02:00

Erlang/OTP

Erlang is a programming language and runtime system for building massively scalable soft real-time systems with requirements on high availability.

OTP is a set of Erlang libraries, which consists of the Erlang runtime system, a number of ready-to-use components mainly written in Erlang, and a set of design principles for Erlang programs. Learn more about Erlang and OTP.

Learn how to program in Erlang.

Examples

There are several examples on the website to help you get started. The below example defines a function world/0 that prints "Hello, world" in the Erlang shell:

-module(hello).
-export([world/0]).

world() -> io:format("Hello, world\n").

Save the file as hello.erl and run erl to enter the Erlang shell to compile the module.

Erlang/OTP 24 [erts-12.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]

Eshell V12.2  (abort with ^G)
1> c(hello).
{ok,hello}
2> hello:world().
Hello, world
ok

Learn more about the Erlang syntax of modules, functions and expressions on Erlang.org.

Installation

Binary Distributions

Erlang/OTP is available as pre-built binary packages by most OS package managers.

apt-get install erlang

Compiling from source

To compile Erlang from source, run the following commands. The complete building and installation instructions can be found here.

git clone https://github.com/erlang/otp.git
cd otp

Checkout the branch or tag of your choice

git checkout maint-27    # current latest stable version

Configure, build and install

./configure
make
make install

Alternatively, you can use Kerl, a script that lets you easily build Erlang with a few commands.

Bug Reports

Please visit our GitHub Issues page for reporting bugs. The instructions for submitting bugs reports can be found here.

Security Disclosure

Please do not report security vulnerabilities through public channels, like GitHub issues, discussions, or pull requests.

Please disclose the security issues following our SECURITY guidelines.

Contributing

We are grateful to the community for contributing bug fixes and improvements. Read below to learn how you can take part in improving Erlang/OTP. We appreciate your help!

Contribution Guide

Read our contribution guide to learn about our development process, how to propose fixes and improvements, and how to test your changes to Erlang/OTP before submitting a pull request.

Help Wanted

We have a list of Help Wanted bugs that we would appreciate external help from the community. This is a great place to get involved.

Awesome-Erlang

You can find more projects, tools and articles related to Erlang/OTP on the awesome-erlang list. Add your project there.

License

Erlang/OTP is released under the Apache License 2.0.

For any license inquiry, please send an email to opensource@ericsson.com

%CopyrightBegin%

SPDX-License-Identifier: Apache-2.0

Copyright Ericsson AB 2010-2025. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

%CopyrightEnd%