fireproofsocks

fireproofsocks

Fatal error asdf install of erlang 24.2.1

I’m trying to install the latest version of Erlang and Elixir using asdf. I’ve successfully been using ASDF with older versions, but trying to the install 24.2.1 has encountered an error.

> asdf install erlang 24.2.1
asdf_24.2.1 is not a kerl-managed Erlang/OTP installation. # <-- is this important?
# ... some warnings, fop is missing, then...
gmake: *** [Makefile:498: libs] Error 2

The referenced log file has a lot of fatal errors like this:

In file included from gen/glu_nif.cpp:25:
gen/../egl_impl.h:34:11: fatal error: 'GL/glu.h' file not found
# include <GL/glu.h>

I am not specifying any KERL_CONFIGURE_OPTIONS during install. Host OS is MacOS 11.6.2 Big Sur; 2.6 GHz 6-Core Intel Core i7.

Anyone have any ideas on this one? I’m stymied. Thanks!

Most Liked

fireproofsocks

fireproofsocks

Actually, now that I’ve re-done this a few times, I think your suggestion works, but I can’t say 100% for certain what the steps were. Something like this:

xcode-select --install # <-- just to be sure
brew uninstall wxwidgets
brew install wxwidgets 
brew link wxwidgets # <-- you might be prompted to do this
# installs to /usr/local/bin/wx-config
# Optionally set some options here...
export KERL_CONFIGURE_OPTIONS="--with-wx-config=/usr/local/bin/wx-config"
# OR
export KERL_CONFIGURE_OPTIONS="--without-wx --without-javac"
# Then
asdf install erlang 24.2.1
asdf install elixir 1.13.2-otp-24

Although there seems to be a snag with asdf here because doing iex or even elixir --version will cough up this error:

{"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,[]}]})

But oddly, this only seems to happen if elixir and erlang versions are scoped globally. As soon as I scope them locally, everything works fine:

asdf local erlang 24.2.1
asdf local elixir 1.13.2-otp-24

I don’t know if this is because I’ve torn out so many pieces of this without rebooting or if there is a legit bug in the global bits or what.

dimitarvp

dimitarvp

Oh, you absolutely should install XCode, there’s no ways around that if you want anything to compile against system sources and libraries.

xcode-select --install

fireproofsocks

fireproofsocks

I tried using the KERL options but I got the same result. I don’t know enough about how the asdf install process works to know if it uses those options when it’s not a kerl-managed installation.

I also tried the trick of forcing an older version of autoconf per https://www.stevenchang.tw/blog/2021/05/25/asdf-install-erlang-failed-on-macbigsur (which has worked for me in the past), but I’m still getting the same result.

Is the GL a graphics library? Maybe for the observer? The error hasn’t given me much to go on and I’m trying to remember if I customized anything on my computer that might have had unintended side-effects…

mekusigjinn

mekusigjinn

I had a similar issue and did a write up here:

Let me know if you have any questions!

In my .bash_profile I have this alias set up:

alias kern-no-wx="export KERL_CONFIGURE_OPTIONS=\"--with-ssl=\`brew --prefix openssl@1.1\` \
                               --without-wx \
                               --disable-hipe \
                               --disable-debug \
                               --without-javac\""

This worked no problem for me!

And yes - this removes wxWidgets from compiling for Erlang. But I don’t really use that Observer anyways.
But you might, so beware that my method will skip wxWidgets, so you won’t have Observer UI.

fireproofsocks

fireproofsocks

Thanks, this was helpful – I was able to get it working like so:

export KERL_CONFIGURE_OPTIONS="--without-wx --without-javac"
asdf install erlang 24.2.1
asdf install elixir 1.13.2-otp-24

but it would be nice to have the observer…

Where Next?

Popular in Questions Top

bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
dokuzbir
Hello, I am trying to convert my lists to string without losing brackets.For start i have 3 map. They look like these buyer = %{ id: ...
New
polypush135
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
lk-geimfari
What is most correct way to open, read and parse JSON file with poison? For example if we have example.json file in root of some projec...
New
vac
Hi, I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
mgjohns61585
Could someone help me? I'm making my first elixir program, number guessing game. I can't figure out how to convert the user's guess from ...
New
Exadra37
Sometimes I want to check if the input into a function is not a blank string. My first approach: defmodule Example do def do_stuff(s...
New
hpopp
To simplify some tasks at work, I wrote and published this package yesterday. It’s a simple macro that enables Access behaviour on struct...
New

Other popular topics Top

JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1140 51847 244
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set? Thanks.
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
magnetic
Hey :wave:t3: Elixir community, I’ve been learning Elixir, and working on some side projects. My editor of choice is VSCode, and althoug...
New

We're in Beta

About us Mission Statement