asdf-vm/asdf-erlang

Erlang instalation fails on Pop!_OS 22.04 LTS

aniltonjunior opened this issue · 5 comments

~$ asdf info
OS:
Linux pop-os 6.0.12-76060006-generic #202212290932~1673966427~22.04~e15d5b5 SMP PREEMPT_DYNAMIC Tue J x86_64 x86_64 x86_64 GNU/Linux

SHELL:
GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

ASDF VERSION:
v0.11.1-27c8a10

ASDF ENVIRONMENT VARIABLES:
ASDF_DIR=/home/aniltonjunior/.asdf

ASDF INSTALLED PLUGINS:
elixir                       https://github.com/asdf-vm/asdf-elixir.git master 1693b35
erlang                       https://github.com/asdf-vm/asdf-erlang.git master 0d402e6
nodejs                       https://github.com/asdf-vm/asdf-nodejs.git master c9e5df4
~$ asdf install erlang 25.2.1
asdf_25.2.1 is not a kerl-managed Erlang/OTP installation
No build named asdf_25.2.1
Downloading 25.2.1 to /home/aniltonjunior/.asdf/downloads/erlang/25.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 98.8M  100 98.8M    0     0  12.4M      0  0:00:07  0:00:07 --:--:-- 11.3M
Extracting source code
Building Erlang/OTP 25.2.1 (asdf_25.2.1), please wait...
APPLICATIONS DISABLED (See: /home/aniltonjunior/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2.1/otp_build_25.2.1.log)
 * odbc           : ODBC library - link check failed

Build failed.
gmake[5]: Leaving directory '/home/aniltonjunior/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2.1/otp_src_25.2.1/lib/megaco/src/flex'
gmake[4]: *** [/home/aniltonjunior/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2.1/otp_src_25.2.1/make/run_make.mk:35: opt] Error 2
gmake[4]: Leaving directory '/home/aniltonjunior/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2.1/otp_src_25.2.1/lib/megaco/src/flex'
gmake[3]: *** [/home/aniltonjunior/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2.1/otp_src_25.2.1/make/otp_subdir.mk:29: opt] Error 2
gmake[3]: Leaving directory '/home/aniltonjunior/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2.1/otp_src_25.2.1/lib/megaco/src'
gmake[2]: *** [/home/aniltonjunior/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2.1/otp_src_25.2.1/make/otp_subdir.mk:29: opt] Error 2
gmake[2]: Leaving directory '/home/aniltonjunior/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2.1/otp_src_25.2.1/lib/megaco'
gmake[1]: *** [/home/aniltonjunior/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2.1/otp_src_25.2.1/make/otp_subdir.mk:29: opt] Error 2
gmake[1]: Leaving directory '/home/aniltonjunior/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2.1/otp_src_25.2.1/lib'
gmake: *** [Makefile:518: libs] Error 2

Please see /home/aniltonjunior/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2.1/otp_build_25.2.1.log for full details.

otp_build_25.2.1.log link to pastebin

I'm installing with ASDF because with apt install all commands returns a segmentation fault error.

I'm not familiar with Pop OS. Is it similar to Ubuntu and Debian? If so, I'd recommend making sure you have the equivalent dependencies for Pop OS installed (see https://github.com/asdf-vm/asdf-erlang#ubuntu-and-debian for the ubuntu/debian dependencies).

Yes, it is based on Ubuntu and I've had follow this instructions and some others.
Actually, even trying to install elixir via app manager (apt install elixir) the executables like erl throw errors of segmentation fault.

Did you check other issue trackers? asdf-erlang uses kerl underneath. Maybe someone has had similar issues on Pop OS with kerl?

I didn't find any similar issue on the kerl issue tracker, but created one. After all, the error is occurring with kerl and not asdf.

Find out that Citrix Workspace was messing up with the compilation process (reason of all that segmentation fault errors).
Uninstalling icaclient was enough to make all work.