asdf-vm / asdf-erlang

Erlang plugin for asdf version manager
https://github.com/asdf-vm/asdf
MIT License
479 stars 118 forks source link

Error installing Erlang 23.1.1 on MacOS. #316

Open weaversam8 opened 2 months ago

weaversam8 commented 2 months ago

I encountered a variant of #157 while installing Erlang 23.1.1. It manifested as the following symptoms:

I tried running with KERL_DEBUG=1 and saw the same behavior. But, on a failed install, it suggested I check the log at ~/.asdf/plugins/erlang/kerl-home/builds/asdf_23.1.1/otp_build_23.1.1.log. I opened this file, and the same error appeared.

When I attempted to install again, the file was overwritten, but when the build hung, I saw the reason in the log file. patch was waiting for an interactive input:

Reversed (or previously applied) patch detected!  Assume -R? [y]

If I typed n, Enter, I got this message:

Apply anyway? [n]

Then I pressed n, Enter. This allowed the installation to proceed.

I'm not sure what's broken here, but it appears that Kerl is trying to patch something that's already been patched, and is reversing it instead.

Edit: I believe I also followed the steps in this comment earlier: https://github.com/asdf-vm/asdf-erlang/issues/195#issuecomment-849110313