sym_num

sym_num

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.

Showing Posts 1 to 10

romenigld

romenigld

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.

sym_num

sym_num OP

Thank you.

wolfiton

wolfiton

You don’t have the libraries neccesary to build erlang on Ubuntu look here GitHub - asdf-vm/asdf-erlang: Erlang plugin for asdf version manager · GitHub

sym_num

sym_num OP

Thank you.

wolfiton

wolfiton

You are welcome.

dc0d

dc0d

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

wolfiton

wolfiton

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

sym_num

sym_num OP

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.

akash-akya

akash-akya

I faced the same issue while installing 26.2.1 using asdf on MacOS Ventura v13.6.1.

asdf_26.2.1 is not a kerl-managed Erlang/OTP installation
The asdf_26.2.1 build has been deleted
Extracting source code
Building Erlang/OTP 26.2.1 (asdf_26.2.1), please wait...
Configure failed.
checking whether lock counters should be enabled... no
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: /Users/akash/.asdf/plugins/erlang/kerl-home/builds/asdf_26.2.1/otp_src_26.2.1/erts/configure failed!
./configure: line 370: kill: (-9950) - No such process

Please see /Users/akash/.asdf/plugins/erlang/kerl-home/builds/asdf_26.2.1/otp_build_26.2.1.log for full details.

Somehow, the compiler failed to find ncurses. Even after updating development toolchain.

Solved by explicitly setting pkg-config path and then installing

$ export PKG_CONFIG_PATH="/usr/local/opt/ncurses/lib/pkgconfig"
$ asdf install erlang 26.2.1
mayel

mayel

Not a direct answer but you may want to try https://mise.jdx.dev which is basically a drop-in replacement for asdf (written in Rust).

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
roeland
Kia ora, We have been using elixir-google-api to connect to Google Drive. However, with the updates to Tesla due to CVEs this is now bro...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
Onor.io
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
jaybe78
Hello, I’m developing a online persistent chat system (what’s app) like using elixir/dynamodb/aws for a mobile app(flutter). The diffic...
New
Trolleger
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New
aseigo
ICal is a library for interacting with iCalendar data. It parses iCalendars into typed Elixir structs via ICal.from_ics, and can prepare ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews