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

New
omgneering
I made a video for getting started with the GenServer module. I introduce some concepts and try go over what's happening step by step. ...
New
omgneering
I made follow-up video for getting started with GenServer. This video goes over the syntax of handle_call, handle_cast and handle_info c...
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
sergio
Here’s a quick 3 minute video explaining how to get a great workflow for Phoenix Liveview templates. Good dev ux!
New
New
ElixirCasts
I made an episode showing how you can use Phoenix.Controller.action_fallback/1 to make simpler, more readable controllers. https://elixi...
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
sevensidedmarble
Hey! Here’s a little video I made on how you can start using Neovim for Elixir/Phoenix development: If you like it, pleas...
New
New

Other popular topics Top

JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1140 51847 244
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 27727 240
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
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New
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

We're in Beta

About us Mission Statement