Erlang is a functional, general-purpose, concurrent programming language and garbage-collected runtime environment built for concurrency, fault tolerance, and distributed application architectures. It is supported and maintained by Ericsson OTP product unit.
In this guide, we will install Erlang/OTP in a FreeBSD 13.
Related Content
- How to install Erlang on Ubuntu 20.04
- How to install Erlang on Opensuse Leap 15.3
- How to install RabbitMQ in OpenSUSE Leap 15.3
- How to install Erlang on Fedora 35
- How to install RabbitMQ in Fedora 35
- How to install Erlang on Rocky Linux/Alma Linux/CentOS 8
- How to install Rabbitmq in Rocky Linux/Alma Linux/Centos 8
Prerequisites
You need the following to follow along
- Updated FreeBSD Server
- Root access or user with root access
- Internet access from the server
Updating the system
Let us ensure that our server packages are up to date using this command:
|
|
Let us also install some common packages
|
|
Installing Erlang
The erlang package is found on the default FreeBSD repos. Install it using this command:
|
|
This is the output on my server
|
|
You should now have erlang installed.
Creating Hello world program
Create hello.erl
file
|
|
Add this to the file
|
|
Compile it from the Erlang shell. Don’t forget the full-stop (“period”) at the end of each command:
|
|
You have successfully installed Erlang in your system.
Conclusion
Thanks for using this tutorial for installing the Erlang programming language on your FreeBSD system. For additional help or useful information, we recommend you to check the official Erlang website.