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
- A running EndeavourOS latest operating system.
- An active internet connection.
- A sudo user.
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:
Update the package manager:
sudo pacman -SyuInstall Elixir:
sudo pacman -S elixirVerify the installation:
elixir --versionThe 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:
Install the required dependencies:
sudo pacman -S git make gcc erlangClone the Elixir source code:
git clone https://github.com/elixir-lang/elixir.gitChange to the elixir directory:
cd elixirCheckout the tag of the version you want to install:
git checkout v1.12.2Replace
v1.12.2with the desired version.Compile Elixir:
makeThis may take a while depending on your system specifications.
Install Elixir:
sudo make installVerify the installation:
elixir --versionThe 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.