Ubuntu 22.04 installation not working

Following the installation guide I am lead to believe that installing Elixir on Ubuntu should be as easy as sudo apt-get install elixir. While this does install elixir and a bunch of erlang dependencies, subsequently trying elixir --version results in a Segmentation fault (core dumped), so I guess some important step is missing from the guide?

I’m not working on Ubuntu, but can you reproduce this in the Ubuntu 22.04 Docker container? That would help isolate debugging.

I created a script that installs Elixir on Ubuntu using asdf.
Copy and paste it into a .sh file, f.e. install_elixir.sh, and execute as:

sh install_elixir.sh

The script:

#!/bin/bash
# As per guide at asdf-vm.com/guide/getting-started.html_2-download-asdf
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.2
echo '. $HOME/.asdf/asdf.sh' >> ~/.bashrc
echo '. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc

# Installing Erlang first
asdf plugin add erlang
asdf install erlang 25.0
asdf global erlang 25.0

# Installing Elixir
asdf plugin add elixir
asdf install elixir 1.14.1-otp-25
asdf global elixir 1.14.1-otp-25

# Check if the installation was successful
elixir -v

In docker it does work, so I guess it’s some issue with my system.

/var/log/syslog contains the following

Dec 20 13:00:04 SWTLSEB0B9QN3 kernel: [18529.641971] beam.smp[127630]: segfault at 7ffc745a5ff8 ip 00007effbbc0315d sp 00007ffc745a6000 error 6 in libc.so.6[7effbbbb6000+195000]
Dec 20 13:00:04 SWTLSEB0B9QN3 kernel: [18529.641979] Code: 44 24 20 48 8b 7c 24 08 be 25 00 00 00 f3 0f 6f 08 0f 11 8c 24 18 01 00 00 48 8b 40 10 0f 29 4c 24 10 48 89 84 24 28 01 00 00 <e8> 6e 33 fb ff 48 89 ac 24 f8 00 00 00 48 89 44 24 68 c6 84 24 a6
``
1 Like