How to get latest Elixir using asdf?

Please help me.
I want to update to the latest Elixir. using asdf
I tried to install Erlang. However, I get the following error:

$asdf install erlang 22.2.2
Downloading OTP-22.2.2.tar.gz to /home/sasagawa/.asdf/plugins/erlang/kerl-home/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 122 0 122 0 0 225 0 --:–:-- --:–:-- --:–:-- 225
100 53.1M 0 53.1M 0 0 4621k 0 --:–:-- 0:00:11 --:–:-- 4336k
Extracting source code
Building Erlang/OTP 22.2.2 (asdf_22.2.2), please wait…
WARNING: It appears that a required development package ‘libssl-dev’ is not installed.
WARNING: It appears that a required development package ‘libncurses5-dev’ is not installed.
Configure failed.
checking for kstat_open in -lkstat… (cached) no
checking for tgetent in -ltinfo… no
checking for tgetent in -lncurses… no
checking for tgetent in -lcurses… no
checking for tgetent in -ltermcap… no
checking for tgetent in -ltermlib… no
configure: error: No curses library functions found
ERROR: /home/sasagawa/.asdf/plugins/erlang/kerl-home/builds/asdf_22.2.2/otp_src_22.2.2/erts/configure failed!
./configure: 343: kill: No such process

I tried to install libssl-dev and libncurses5-dev but get an error.

Elixir1.10 could be installed with asdf. But Erlang doesn’t work.

I use Linux Mint 18.1 “Serena” MATE.

I install the versions:

elixir         1.10.0  
erlang         22.1.8

Here a complete install with Linux in portuguese with the @akitaonrails but it’s posible to understand just watching or you can put translation of the subtitle:

and you can begin in the time 41:06 for install the libraries and after this begins the instalation with the asdf.
If you are a Mac OS user you can install the libraries with Homebrew as well.

1 Like

Thank you.

1 Like

You don’t have the libraries neccesary to build erlang on Ubuntu look here https://github.com/asdf-vm/asdf-erlang#before-asdf-install

3 Likes

Thank you.

2 Likes

You are welcome.

1 Like

I gave up on installing Erlang via asdf on Mac. It’s for some time that I use this setting: Installed Erlang using brew and the precompiled version Elixir using asdf (for which, the version looks like 1.10.0-otp-22).

Do not use brew, I wrote a guide to install asdf on Mac, I can searched for it if you needed it.

Here is my guide use git asdf Mac guide

Thank you very much. I was able to update to the latest version.

The software index was corrupted. I managed to fix it using aptitude.

The information from everyone was very helpful. Thank you very much.

2 Likes