Search code examples
erlangasdf-vm

asdf-erlang doesn't install man pages


I am using asdf + asdf-erlang as my version manager for Erlang. All seems to be working fine, except that typing erl -man mnesia results in No manual entry for mnesia.

I have installed all dependencies mentioned on the asdf-erlang github page. I have also installed xsltproc and fop. Unfortunately "man" folder located under ~/.asdf/installs/erlang/18.3/lib/erlang/erts-73/ is empty. I haven't found man pages being generated elsewhere.

I was trying to locate build log, but I was not successful with that either.

I am using 64bit Ubuntu 16.10 & 16.04.


Solution

  • OK. I finally managed to resolve the issue:

    1. Go to https://www.erlang.org/downloads/ and download manpages for the version(s) of Erlang you have installed using asdf (so for 18.3 you're looking for: http://erlang.org/download/otp_doc_man_18.3.tar.gz)

    2. Copy man folder with its content (extracted from the archive) to ~/.asdf/installs/erlang/<version>/lib/erlang/. After doing so, you should have .~/asdf/installs/erlang/<version>/lib/erlang/man containing man1, man3, man4, man6, man7 (and each of those folders should have some manpages in it).

    Repeating steps above for all the versions installed using asdf, allows you to use manpages for specific version of Erlang you are using at the moment.