How to install erlang 24.0-rc1

Background

I am trying to install erlang 24.0-rc1 in my machine to try an Elixir Desktop App via asdf however I am not sure this exists yet.

Problem

So, I tried running the following command:

asdf install erlang 24.0-rc1

Which resulted in

$ asdf install erlang 24.0-rc1
asdf_24.0-rc1 is not a kerl-managed Erlang/OTP installation
No build named asdf_24.0-rc1
Downloading OTP-24.0-rc1.tar.gz to /Users/pedroma/.asdf/plugins/erlang/kerl-home/archives...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   124  100   124    0     0    380      0 --:--:-- --:--:-- --:--:--   381
100 56.6M    0 56.6M    0     0  3987k      0 --:--:--  0:00:14 --:--:-- 4275k
Extracting source code
Building Erlang/OTP 24.0-rc1 (asdf_24.0-rc1), please wait...
Configure failed.

=== running autoconf in lib/common_test
./otp_build: line 234: autoconf: command not found
make: *** No rule to make target `clean'.  Stop.
/Users/fl4m3/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0-rc1/otp_src_24.0-rc1/configure  --cache-file=/dev/null CC=clang DED_LD=clang DED_LDFLAGS=-m64\ -bundle\ -bundle_loader\ /Users/fl4m3/\.asdf/plugins/erlang/kerl-home/builds/asdf_24\.0-rc1/otp_src_24\.0-rc1/bin/x86_64-apple-darwin18\.7\.0/beam\.smp --enable-darwin-64bit
./otp_build: line 262: ./configure: No such file or directory

As you can see it says No build named asdf_24.0-rc1 which I believe it means that asdf cannot find it.

So I have a couple of questions:

  • Is it possible to install 24.0-rc1 via asdf ? (If so how?)
  • If not, where can I get the version for MacOs, Ubuntu and Windows respectively? (I only found 23.3 Erlang Programming Language)

Are you sure that you’re on the latest version of asdf and asdf-erlang? 24.0-rc1 should be valid (in fact rc2 is out as well) and I have it installed. Although I didn’t double check that that is the exactly correct identifier.

I believe I have the latest version:

OS:
Darwin BCNPEDMARTMAC.local 18.7.0 Darwin Kernel Version 18.7.0: Tue Jan 12 22:04:47 PST 2021; root:xnu-4903.278.56~1/RELEASE_X86_64 x86_64

SHELL:
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)
Copyright (C) 2007 Free Software Foundation, Inc.

ASDF VERSION:
v0.8.0-c6145d0

ASDF ENVIRONMENT VARIABLES:
ASDF_DIR=/Users/fl4m3/.asdf

ASDF INSTALLED PLUGINS:
elixir                       https://github.com/asdf-vm/asdf-elixir.git
erlang                       https://github.com/asdf-vm/asdf-erlang.git
nodejs                       https://github.com/asdf-vm/asdf-nodejs.git
rabbitmq                     https://github.com/w-sanches/asdf-rabbitmq
ruby                         https://github.com/asdf-vm/asdf-ruby.git
terraform                    https://github.com/Banno/asdf-hashicorp.git

As for the identifiers, I usually take them from this list:

https://bobs-list.kobrakai.de/erlang/ubuntu_20

Could this be the actual error? Are you sure you have required dependencies installed?

FYI: there’s already rc3

 ~  asdf plugin update erlang
Updating erlang...
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 2), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), 1.42 KiB | 291.00 KiB/s, done.
From https://github.com/asdf-vm/asdf-erlang
   72d3187..97adb67  master     -> master
   72d3187..97adb67  master     -> origin/master
Already on 'master'
Your branch is up to date with 'origin/master'.
 ~  asdf list-all erlang | grep "24.0"
24.0-rc1
24.0-rc2
24.0-rc3

I recently had issues of such with my archlinux installation. Looked into asdf-erlang github repo for solutions and possibly a wiki has been dedicated for it. For Mac, I found this link. It’s the issue with autoconf version.

1 Like

It looks like this is an issue with my MacOS brew installation. Since brew is broken again, asdf cannot work.
I wish there was an easy way to simply fix brew or just reset it, but I am out of luck.

Thanks for the help though.

EDIT

I have found a solution in asdf issues list that seems to work:

If anyone else has the same issue.

1 Like