Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erlang apt PPA does not work #411

Closed
BatmanAoD opened this issue Jul 17, 2022 · 11 comments
Closed

Erlang apt PPA does not work #411

BatmanAoD opened this issue Jul 17, 2022 · 11 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@BatmanAoD
Copy link

This issue describes a problem I ran into while attempting to install Erlang on Ubuntu (on WSL): elixir-lang/elixir-lang.github.com#1575

Specifically, Erlang's PPA (their hosted source for Debian/Ubuntu packages) appears to be broken, at least for Ubuntu 22.04 (Jammy).

Since Gleam's installation instructions recommend using the PPA, it might be preferable to recommend a different approach. Unfortunately, I'm not sure what the most straightforward/correct path would actually be, though I did add a comment on the Elixir issue thread describing my installation approach (downloading the .deb file directly and installing with apt).

@lpil
Copy link
Member

lpil commented Jul 24, 2022

Thank you! I'm not sure what the right thing to recommend is here. I am surprised that they are not producing packages for the latest version of the operating system.

@lpil lpil added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Jul 24, 2022
@lpil
Copy link
Member

lpil commented Jul 31, 2023

I believe this has been resolved

@lpil lpil closed this as completed Jul 31, 2023
@BatmanAoD
Copy link
Author

BatmanAoD commented Jul 31, 2023

It's actually still not working (tested this time with Ubuntu 23.04 on a VM on Mac OS), but for some reason the originally-linked Erlang issue has been replaced with a different one: esl/packages#15 [edit: this is actually an issue on the repo for "Erlang Solutions," not for the Elixir language]

The issue thread mentions using binaries2.erlang-solutions.com instead of binaries.erlang-solutions.com, but that doesn't seem to work for Ubuntu lunar; maybe it works for 22, though.

The last comment in the thread implies that RabbitMQ maintains working repos; maybe people should just be pointed there instead of toward the official "Erlang solutions" Erlang repos?

@lpil
Copy link
Member

lpil commented Aug 1, 2023

Ah! If there's rabbitmq ones we can use that sounds like a good idea.

@lpil lpil reopened this Aug 1, 2023
@j-koehler
Copy link

I can only recommend using the RabbitMQ repository. We made the switch back in may since it was almost a year since I asked for missing binaries for Jammy.

(On a site note: I don't even think Erlang Solutions is an "official Erlang repo". Yes, it's mentioned on the Erlang download page, but this is just a Erlang consulting company kind enough to provide compiled packages of recent Erlang version through a repository. They obviously suffer from very constrained resources and do not provide compiled packages for any "modern" distribution. Debian 12 is missing, Ubuntu 22.04 is still missing, ... I think it would be best not to link directly to them anymore from erlang.org (or at least not to burden them with the implicit "there (and only there) you get compiled binaries" additionally). But that's a different story.)

@lpil
Copy link
Member

lpil commented Aug 3, 2023

Excellent, thank you. Would you like to make a pull request? Being familiar with this process.

@j-koehler
Copy link

No promises, I don't know this project at all. I just wanted to give the feedback when I read the mention in "my" issue (over at esl/packages).

@BatmanAoD
Copy link
Author

BatmanAoD commented Aug 4, 2023

I just installed Erlang using the RabbitMQ instructions, and it went fine.

But, come to think of it, there's not a ton of benefit in doing so, because the Gleam installation page doesn't actually have an officially recommended apt source for Gleam itself. So I installed asdf and installed Gleam that way.

...so maybe Gleam should just recommend asdf to Debian/Ubuntu users for both Erlang and Gleam itself?

@lpil
Copy link
Member

lpil commented Aug 6, 2023

asdf is quite complex, doesn't do automatic patching, and takes a long time to install Erlang as it compiles from source, so I think in many situations installing using the OS package manager is much preferred.

I'm a huge fan of it but I think it's best suited to development usage and for folks with some familiarity with CLI tools and C compilation.

@lpil lpil transferred this issue from gleam-lang/gleam Jul 22, 2024
@Janiczek
Copy link
Contributor

Janiczek commented Dec 3, 2024

Erlang Solutions has instructions for installing Erlang on Ubuntu different from the "Installing Gleam" doc:

https://www.erlang-solutions.com/downloads/#

They're roughly:

# Add to /etc/apt/sources.list
deb http://binaries2.erlang-solutions.com/ubuntu/ jammy-esl-erlang-25 contrib
# Possible other lines depending on your `lsb_release -c`
# deb http://binaries2.erlang-solutions.com/debian/ bullseye-elixir-1.15 contrib
# deb http://binaries2.erlang-solutions.com/ubuntu/ bionic-mongooseim-6 contrib

# Add Erlang Solutions repo keys:
wget https://binaries2.erlang-solutions.com/GPG-KEY-pmanager.asc
sudo apt-key add GPG-KEY-pmanager.asc

# Update apt and install esl-erlang
sudo apt update
sudo apt install esl-erlang

@lpil
Copy link
Member

lpil commented Dec 4, 2024

Thank you

@lpil lpil closed this as completed in 2ded82c Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants