Lädt...

🔧 Installing Elixir on Debian Crostini


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

Introduction

The official Elixir installation script does not support Debian, a flavor of the Linux operating system, that is widely used, specifically in servers, development environments, and Chromebooks.

In this post, we shall find a workaround and install Elixir on Debian Crostini, a customized version of Debian that comes with ChromeOs which powers Chromebooks worldwide.

Elixir is a modern functional programming language that runs on ErlangVM. It is known for having an easy-to-write syntax, high scalability, and designed to be fault tolerant and scalable. In recent times, Elixir has become the language of choice for managing the systems and logic around AI agents and chatbots due to its concurrency, distributed computing, and real-time capabilities.

In the next section, we'll cover the overview of the steps required to install Elixir on Debian systems.

Overview of Steps

The following steps are required to install Elixir on Debian:

  • Install asdf
  • Install Erlang
  • Install Elixir

Installing ASDF

asdf is a tool version manager that ensures consistency in the version of tools across users by providing a single interface and configuration file to make development workflows simple.

To install asdf, we first need to install dependencies.

$ sudo apt install -y curl git

Next, clone asdf from the GitHub repo:

$ git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.16.4

Replace v0.16.4 with the version of ASDF you wish to install.

Now let's add the binaries to .bashrc environment.

$ subl ~/.bashrc 

Here, you can use any text editor of your choice. This example uses the Sublime Text (subl) editor.

Then add the following lines at the end of the file:

. "$HOME/.asdf/asdf.sh"
. "$HOME/.asdf/completions/asdf.bash"

Now we can fetch the version for asdf to verify a successful install:

$ asdf --version
v0.15.0-4b9297b

With asdf installed, we can now proceed to install Erlang.

Installing Erlang

Let's install dependencies before compiling Erlang with asdf.

$ sudo apt install -y build-essential autoconf automake m4 libwxgtk3.2-dev libwxgtk-webview3.2-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev libssh-dev unixodbc-dev xsltproc fop libxml2-utils libncurses-dev openjdk-17-jdk

We can then proceed to install Erlang:

$ asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git
$ asdf install erlang 27.2.4
$ asdf global erlang 27.2.4

Where 27.2.4 is the version of Erlang you wish to install.

With Erlang installed, we can proceed to finish with adding Elixir.

Installing Elixir

Let's add elixir as a plugin and then execute the install command.

$ asdf plugin add elixir https://github.com/asdf-vm/asdf-elixir.git
$ asdf install elixir 1.18.2-otp-27
$ asdf global elixir 1.18.2-otp-27

Where 1.18.2 is the version of elixir, and 27 is the version of Erlang installed beforehand.

By checking the elixir version, you should see something similar to the following:

$ elixr -v
Elixir 1.18.2 (compiled with Erlang/OTP 27)

Elixir is now successfully installed. You can now launch the interactive console by executing the following command:

$ iex

Conclusion

In this post, we successfully navigated the challenge of installing Elixir on Debian Crostini, a customized version of Debian used in Chromebooks. By leveraging asdf, a versatile tool version manager, we installed both Erlang and Elixir, ensuring compatibility and consistency. This setup unlocks the power of Elixir’s concurrency, fault tolerance, and real-time capabilities, making it a great choice for building scalable systems, AI agents, and chatbots.

...

🔧 Installing Elixir on Debian Crostini


📈 59.44 Punkte
🔧 Programmierung

🔧 A RAG for Elixir in Elixir


📈 30.69 Punkte
🔧 Programmierung

🔧 Elixir Task, Task.Supervisor - Another way to work with Elixir process


📈 30.69 Punkte
🔧 Programmierung

🔧 A RAG for Elixir in Elixir


📈 30.69 Punkte
🔧 Programmierung

📰 Crostini: Linux-Umgebung in ChromeOS verlässt Betaphase


📈 27.99 Punkte
📰 IT Nachrichten

🐧 Running Wine in Crostini


📈 27.99 Punkte
🐧 Linux Tipps

🐧 Pixelbook and “Nami” Chromebooks the first to get Linux GPU acceleration in Project Crostini


📈 27.99 Punkte
🐧 Linux Tipps

📰 Pixelbook and 'Nami' Chromebooks the First To Get Linux GPU Acceleration in Project Crostini


📈 27.99 Punkte
📰 IT Security Nachrichten

🐧 WSL versus Crostini. Which approach better?


📈 27.99 Punkte
🐧 Linux Tipps

🐧 Build your own Chrome/Linux operating system with Chromium OS and Crostini


📈 27.99 Punkte
🐧 Linux Tipps

🐧 Official Chromebook Linux Support is here! Crostini Running on ARM and Intel


📈 27.99 Punkte
🐧 Linux Tipps

🔧 Installing Kubernetes using kubeadm without installing docker in Ubuntu


📈 19.52 Punkte
🔧 Programmierung

🔧 Installing Kubernetes using kubeadm without installing docker in Ubuntu


📈 19.52 Punkte
🔧 Programmierung

🐧 Many, many people hated me before for installing Ubuntu 16.10 so I'm now installing 19.0.


📈 19.52 Punkte
🐧 Linux Tipps

🐧 Many, many people hated me before for installing Ubuntu 16.10 so I'm now installing 19.0.


📈 19.52 Punkte
🐧 Linux Tipps

📰 Debian 11 "Bullseye" & Debian 12 "Bookworm" Are Coming After Debian 10 "Buster"


📈 19.03 Punkte
📰 IT Security Nachrichten

📰 Debian Releases New Linux Kernel Security Update for Debian 10 and Debian 9


📈 19.03 Punkte
📰 IT Security Nachrichten

🐧 Debian-goodies - A Set Of Useful Utilities For Debian Users (And Debian-based Distro Users)


📈 19.03 Punkte
🐧 Linux Tipps

🐧 Surprisingly, Ubuntu suggests installing missing firmware from Debian


📈 16.1 Punkte
🐧 Linux Tipps

📰 Installing Nvidia Graphics Drivers on Debian 12


📈 16.1 Punkte
🐧 Unix Server

🔧 Installing PgBouncer on Ubuntu/Debian


📈 16.1 Punkte
🔧 Programmierung

🐧 Installing Debian on a Frankenpad [T41p chassis, T43 mobo, 2GB DDR2, 60GB IDE HDD]


📈 16.1 Punkte
🐧 Linux Tipps

🐧 Error: AER for ath9k while installing Debian


📈 16.1 Punkte
🐧 Linux Tipps

matomo