Open jrfondren opened 4 months ago
There's a very recent upstream fix in kerl/kerl#520 for this, currently only on the main branch.
You can recompile with
$ export ASDF_KERL_VERSION=master
export KERL_BUILD_DOCS=yes
export KERL_DOC_TARGETS="chunks man"
export KERL_INSTALL_MANPAGES=yes
$ asdf install erlang 26.2.5
Downloading kerl...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 82416 100 82416 0 0 1787k 0 --:--:-- --:--:-- --:--:-- 1829k
ERROR: 'asdf_26.2.5' is not a kerl-managed Erlang/OTP installation.
ERROR: no build named 'asdf_26.2.5'!
Downloading (from GitHub) Erlang/OTP 26.2.5 to /home/juan/.asdf/downloads/erlang/26.2.5...
Extracting source code for normal build...
Building (normal) Erlang/OTP 26.2.5 (asdf_26.2.5); please wait...
Initializing (build) log file at /home/juan/.asdf/plugins/erlang/kerl-home/builds/asdf_26.2.5/otp_build_26.2.5.log.
Building docs...
Erlang/OTP 26.2.5 (asdf_26.2.5) has been successfully built.
Cleaning up compilation products for 'asdf_26.2.5' under:
- /home/juan/.asdf/plugins/erlang/kerl-home/builds...
- /home/juan/.asdf/downloads/erlang/26.2.5...
... done.
$ asdf global erlang 26.2.5
$ erl -man erl
erl(1) User Commands erl(1)
NAME
erl - The Erlang emulator.
Once a new version of kerl is tagged I'll get this fix into asdf-erlang.
This seems to be fixed in 4468afe892d41ab8963de2e064048027d9dff9e3 by pulling in kerl 4.1.1.
Previously reported and fixed in #22
A strace of
erl -man erl
shows it tryingThe only 'man' directory under ~/.asdf that I have is empty, ~/.asdf/installs/erlang/26.2.5/erts-14.2.5/man
workaround
Open module documentation with
xdg-open https://www.erlang.org/doc/man/$module
instead. I.e.,Manpages have many advantages that this misses, such as always being for the correct version of Erlang.
post-build fix