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 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.
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: