How to Install Elixir on FreeBSD Latest

Elixir is a dynamic and functional programming language that is built on top of the Erlang virtual machine. In this tutorial, we will explain step-by-step how to install Elixir on FreeBSD latest version.

Prerequisites

Before you start this tutorial, you need to have:

Step 1: Update FreeBSD Packages

First, update the installed packages of FreeBSD with the following command:

sudo pkg update -f

Step 2: Install Dependencies

To install Elixir on FreeBSD, we need to install some dependencies.

sudo pkg install gmake gcc49 git erlang openssl

Step 3: Clone Elixir Repository

Now, we need to clone the Elixir repository using git.

git clone https://github.com/elixir-lang/elixir.git

Step 4: Build and Install Elixir

Now, navigate into the Elixir directory and compile Elixir with the following commands:

cd elixir
make clean test

If everything runs successfully, install Elixir by running:

sudo make install

The installation process may take some time.

Step 5: Verify Elixir Installation

After the installation is complete, verify that Elixir has been successfully installed by running the following command:

elixir --version

You should see the installed Elixir version printed to the terminal:

Erlang/OTP 20 [erts-9.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Elixir 1.7.3 (compiled with OTP 20)

Conclusion

You have successfully installed Elixir on FreeBSD latest version. Now, you can start developing applications using Elixir.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!