cerl script (debug-mode erl) installed incorrectly
borgoat opened this issue · 0 comments
borgoat commented
I installed 25.1.1 with this kerl option to enable the debugger:
export KERL_BUILD_DEBUG_VM=true
Kerl picks up the command correctly, and it builds the vm in debug mode.
However, when trying to execute cerl, the vm does not start:
$ cerl
[~]/.asdf/installs/erlang/25.1.1/bin/cerl: line 105: [~]/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1.1/otp_src_25.1.1/make/autoconf/config.guess: No such file or directory
[~]/.asdf/installs/erlang/25.1.1/bin/cerl: line 288: [~]/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1.1/otp_src_25.1.1/bin//erlexec: No such file or directory
[~]/.asdf/installs/erlang/25.1.1/bin/cerl: line 430: [~]/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1.1/otp_src_25.1.1/bin//erlexec: No such file or directory
I believe this has to do with the kerl cleanup done during the install - it seems the debug vm requires the OTP source to still be there.
I found the same behaviour on both Linux and macOS