asdf-erlang doesn't install man pages

谁说胖子不能爱 提交于 2019-12-10 22:55:21

问题


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.


回答1:


looks like erlang-manpages are not included in the asdf-erlang since you are using ubuntu i would suggest you add Erlang Solutions repository to your system, call the following commands:

wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update

then install erlang-manpages:

sudo apt-get install erlang-manpages

you could also install erlang-doc — HTML/PDF documentation

sudo apt-get install erlang-doc

check this page for more information




回答2:


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.




回答3:


The man path in @MaciekTalaska 's answer seems not correct, it does not work at all, for erlang 18.3.

After reading ASDF's activate script(), here's one statement:

_KERL_MANPATH_REMOVABLE="$HOME/.asdf/installs/erlang/18.3/lib/erlang/man:$HOME/.asdf/installs/erlang/18.3/man"

Therefore, you just need to:

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)

Copy man folder with its content (extracted from the archive) to $HOME/.asdf/installs/erlang/${version}, but not $HOME/.asdf/installs/erlang/${version}/lib/erlang/ (in fact, there isn't a folder named erlang under lib).



来源:https://stackoverflow.com/questions/42041920/asdf-erlang-doesnt-install-man-pages

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!