To @fpauserfpauser:
You write:
Never had problems with asdf. The concrete segfault (really?) would be interesting
This is the concrete segfault:
ubuntu@ip-[ip]:~$ elixir -v
{"init terminating in do_boot",{undef,[{elixir,start_cli,[],[]},{init,start_em,1,[]},{init,do_boot,3,[]}]}}
init terminating in do_boot ({undef,[{elixir,start_cli,[],[]},{init,start_em,1,[]},{init,do_boot,3,[]}]})
Crash dump is being written to: erl_crash.dump...done
ubuntu@ip- [ip] :~$
ubuntu@ip- [ip] :~$ asdf list elixir
*1.16.0-otp-26
ubuntu@ip [ip] :~$ asdf install elixir latest
elixir 1.16.0-otp-26 is already installed
I will take a look at " Using ASDF with Elixir and Phoenix " that you linked.
–
To @arcanemachine
Thank you, for me this is what posting your one-liner which you posted as
KERL_BUILD_DOCS=yes asdf install erlang 26.2.1 && asdf install elixir 1.16.0-otp-26 && asdf global elixir 1.16.0-otp-26
gives:
ubuntu@ip-[IP]:~$ KERL_BUILD_DOCS=yes asdf install erlang 26.2.1 && asdf install elixir 1.16.0-otp-26 && asdf global elixir 1.16.0-otp-26
asdf_26.2.1 is not a kerl-managed Erlang/OTP installation
No build named asdf_26.2.1
Downloading 26.2.1 to /home/ubuntu/.asdf/downloads/erlang/26.2.1...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 101M 100 101M 0 0 88.2M 0 0:00:01 0:00:01 --:--:-- 129M
Extracting source code
Building Erlang/OTP 26.2.1 (asdf_26.2.1), please wait...
[packages] Probe failed for libssl-dev (distro: ubuntu): probe "dpkg-query -Wf'${db:Status-abbrev}' "libssl-dev" 2>/dev/null | \grep -q '^i'" returned 1
[packages] Probe failed for make (distro: ubuntu): probe "dpkg-query -Wf'${db:Status-abbrev}' "make" 2>/dev/null | \grep -q '^i'" returned 1
[packages] Probe failed for automake (distro: ubuntu): probe "dpkg-query -Wf'${db:Status-abbrev}' "automake" 2>/dev/null | \grep -q '^i'" returned 1
[packages] Probe failed for autoconf (distro: ubuntu): probe "dpkg-query -Wf'${db:Status-abbrev}' "autoconf" 2>/dev/null | \grep -q '^i'" returned 1
[packages] Probe failed for libncurses5-dev (distro: ubuntu): probe "dpkg-query -Wf'${db:Status-abbrev}' "libncurses5-dev" 2>/dev/null | \grep -q '^i'" returned 1
[packages] Probe failed for gcc (distro: ubuntu): probe "dpkg-query -Wf'${db:Status-abbrev}' "gcc" 2>/dev/null | \grep -q '^i'" returned 1
[packages] Probe failed for g++ (distro: ubuntu): probe "dpkg-query -Wf'${db:Status-abbrev}' "g++" 2>/dev/null | \grep -q '^i'" returned 1
Configure failed.
checking for gcc... no
checking for cc... no
checking for cl.exe... no
checking for clang... no
configure: error: in `/home/ubuntu/.asdf/plugins/erlang/kerl-home/builds/asdf_26.2.1/otp_src_26.2.1/erts':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
ERROR: /home/ubuntu/.asdf/plugins/erlang/kerl-home/builds/asdf_26.2.1/otp_src_26.2.1/erts/configure failed!
./configure: 370: kill: No such process
Please see /home/ubuntu/.asdf/plugins/erlang/kerl-home/builds/asdf_26.2.1/otp_build_26.2.1.log for full details.
–
As I mentioned this is a stock build of Ubuntu (in fact it is Amazon’s stock build) freshly spun up so I can see it is missing large parts of the toolchain (I can see in the lines above the errors about missing gcc etc), hence I would like to know what single line to paste.
I am trying to move toward the containerization mindset which is why I would like to be able to get it down to a single line, so I can later put it in a Docker file for it!