calebjosue

calebjosue

Installing Elixir 1.16.1 (And Erlang 26.2.1) on Gnu/Linux Debian 12 (Bookworm) from Source Code

I’ve made a video on how to install Erlang (26.2.1) and Elixir (1.16.1) on GNU/Linux Debian 12 (Bookworm).

Thanks!

Most Liked

Eiji

Eiji

Honestly? Personally I’m :-1: on this. This is more like how to make Erlang and Elixir compile - not a good way to prepare environment. In modern environments versions managers like asdf are used instead of doing everything by hand and they also allows to compile Erlang and Elixir - not even mentioning that there are up-to-date binary releases. Unfortunately your way you could scare new developers already at the Erlang step. :sweat_smile:

The second thing you are doing wrong is not to use a tools your distribution provides. Yes, version managers like asdf does not handle dependencies by you, but their plugins have usually a simple one line command to install dependencies using apt and that’s more than enough for a new developer to know. :+1:

What a guide like you could do is as said using all helpful stuff your distribution provides. I already gave an example about it here:

In Gentoo btw. it’s even simpler, because *.ebuild files are text files and you don’t have to generate a deb or any other files. :thinking:

The biggest problem with your guide however is how to do update your installed by hand environment. In very short people need to go all over again and ensure everything works which could be fully automated and the update then looks like:

  1. Install distribution updates (using apt for example) :penguin:
  2. Install updates using version manager (using asdf for example) :man_office_worker:

and … that’s it! Story end. You have to spend only “5 min” only once and then you can the time you saved on more (or less) productive things. :pizza:

calebjosue

calebjosue

Eiji!

Well, I would like to draw this self-enriching conversation to a conclusion, let me first thank you for the time and thought you have put into your detailed and elaborated answers.

Let me also mention the fact I am an Elixir/Phoenix newcomer myself, a couple of months ago I’ve shared a kind of walkthrough in which I have installed (Not shown in the video) Erlang and Elixir using the official repositories available in Ubuntu. I also used the automated deployment process Gigalixir provides, believe me, there was nothing manual in there.

I would take into consideration your points for my future videos, but I certainly believe installing from sources is a good and standard alternative.

Did you said that to Gentoo user? :joy:

How could I knew this? I didn’t meant to offend you. I didn’t dig into your profile, so if you are sorta an advaced user please accept my apologies. The video is all about installing on Debian (It is in the title).

Thank you very much again for your insights, appreciated, and please do have an excellent week ahead.

Where Next?

Popular in Screencasts Top

anup
I created a screencast on how to use simple constructs in elixir like spawn, send and receive to create a process which can manage its ow...
New
ElixirCasts
I made an screencast that looks at Sobelow, a project that scans Phoenix applications for security issues. If you haven’t used Sobelow be...
New
ElixirCasts
I made an episode where we use escript to make a Rock-Paper-Scissors we can play from the command line. https://elixircasts.io/command-l...
New
ElixirCasts
I made an episode that shows how you can use the great Number package to convert numbers to different formats like currency, percent, and...
New
ElixirCasts
I made a screencast exploring how to use Phx.Gen.Auth to handle authentication. https://elixircasts.io/using-phx_gen_auth-for-phoenix-au...
New
zacksiri
At Codemy.net we are always trying to find solutions for problems in a way that works well. As a result we’ve been able to create a beaut...
New
New
ElixirCasts
I made an episode exploring Phoenix assigns: https://elixircasts.io/exploring-phoenix-assigns
New
CinderellaMan
Hello, I’m not sure where this should / could be posted, but I’ve put a lot of effort and just released my first video about streaming c...
New
germsvel
:wave: Hi everyone, I’ve been posting short Elixir and Phoenix video tips and tricks for a little while on Twitter. But now, I’ve conso...
New

Other popular topics Top

lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 49522 488
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
Nvim
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New

We're in Beta

About us Mission Statement