无法在Mac OSX莫哈韦上安装asdf erlang

5t7ly7z5  于 2022-12-08  发布在  Erlang
关注(0)|答案(2)|浏览(151)

我正在尝试在Mac OS系统中安装Erlang,但安装程序没有明显的原因而挂起:

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

我知道问题不是网络,因为我已经下载了所有的东西,永远挂起的步骤是构建步骤。
我已经从零开始删除并重新安装了asdf和Erlang,但它没有解决这个问题。
我相信我也有所有必要的依赖项,否则重新安装将失败。
我能做些什么来解决这个问题?

nue99wik

nue99wik1#

转到~/.asdf/plugins/erlang/kerl-home/builds/asdf_22.2.8并查看otp_build_22.2.8.log文件,它应该会告诉你发生了什么。

c9x0cxw0

c9x0cxw02#

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.

相关问题