How to install Elixir on EndeavourOS Latest

Elixir is a functional and dynamic programming language built on top of the Erlang VM. It is designed for building scalable, fault-tolerant, and distributed applications. In this tutorial, we will show you how to install Elixir on EndeavourOS latest using the official package manager and compile it from source.

Prerequisites

Method 1: Installing Elixir with the package manager

EndeavourOS latest provides the Elixir package in its default repository. You can install it using the following commands in the terminal:

  1. Update the package manager:

    sudo pacman -Syu
    
  2. Install Elixir:

    sudo pacman -S elixir
    
  3. Verify the installation:

    elixir --version
    

    The output should show the installed Elixir version.

Method 2: Compiling Elixir from source

If you want to install a specific version of Elixir that is not available in the official repository, you can compile it from source. Follow these steps:

  1. Install the required dependencies:

    sudo pacman -S git make gcc erlang
    
  2. Clone the Elixir source code:

    git clone https://github.com/elixir-lang/elixir.git
    
  3. Change to the elixir directory:

    cd elixir
    
  4. Checkout the tag of the version you want to install:

    git checkout v1.12.2
    

    Replace v1.12.2 with the desired version.

  5. Compile Elixir:

    make
    

    This may take a while depending on your system specifications.

  6. Install Elixir:

    sudo make install
    
  7. Verify the installation:

    elixir --version
    

    The output should show the installed Elixir version.

Conclusion

You now have Elixir installed on your EndeavourOS latest operating system. You can start building your applications using Elixir and the powerful Erlang VM.

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!