Flame_Phoenix
Flame_Phoenix

Reputation: 17574

Cannot install asdf erlang on MAC OSX Mojave

I am trying to install Erlang in a Mac OS system with Mojave on it. However the installation hangs for no apparent reason:

$ asdf install erlang 22.2.8
asdf_22.2.8 is not a kerl-managed Erlang/OTP installation
The asdf_22.2.8 build has been deleted
Extracting source code
Building Erlang/OTP 22.2.8 (asdf_22.2.8), please wait...

I know the issue is not the network, as I have downloaded everything and the step that hangs forever is the Building step.

I have removed and re-installed both asdf and Erlang from scratch as well, but it didn't fix the issue.

I believe I have all necessary dependencies as well, otherwise the re-installation would have failed.

What can I do to fix this?

Upvotes: 2

Views: 1958

Answers (2)

Flame_Phoenix
Flame_Phoenix

Reputation: 17574

Solution

Thanks to the post by @legoscia I went to ~/.asdf/plugins/erlang/kerl-home/builds/asdf_22.2.8 and looked at the otp_build_22.2.8.log while it was still being built.

By checking this I was actually able to find out that I had a problem with my brew installation, which in turn meant I was using a very outdated version of XCode and XTools.

By forcing an upgrade on my machine (and as a consequence fixing my broken brew installation), I was then able to smoothly run and install asdf install erlang.

I know this is the solution, but I will give credit to @legoscia, as without him/her I would not have been able to fix my issue.

Upvotes: 3

legoscia
legoscia

Reputation: 41548

Go to ~/.asdf/plugins/erlang/kerl-home/builds/asdf_22.2.8 and look at the otp_build_22.2.8.log file. It should tell you what's going on.

Upvotes: 5

Related Questions