问题
Installed Erlang (releases from 19 to 22) using
- the Nix package manager
apt
- and compiling from source
on Ubuntu 18.04 with Xmonad and Debian 9 running in the cloud, but every time, net_adm
is not available through the Erlang shell event though other kernel modules are.
I assume that this is caused by an external system configuration because couldn't find anything about this online, so people are not complaining about it. (Only found one person so far.)
回答1:
Kind of ashamed to admit that I am an idiot, but net_adm
was there all this time...
For some reason, it wouldn't autocomplete on the erl
shell, but once typed out starting with net_adm:
(such as the non-existent net_adm:ping()
), and executed it, it would start recognizing the module, and provide a list of available functions when hitting the Tab key.
来源:https://stackoverflow.com/questions/59219351/what-could-cause-the-net-adm-kernel-erlang-module-to-be-unavailable