erlang 中的 -pa 和 -pz 是什么?
What is -pa and -pz in erlang?
我试图修改 ejabberd-contrib
中的 mod_log_chat
模块,我在 build.sh
中看到了以下命令
erl -pa ../ejabberd-dev/ebin -pz ebin -make
谁能解释一下 -pa
和 -pz
是什么?我没有从网上获得满意的信息。
发件人:http://erlang.org/doc/man/code.html
In interactive mode, the code server maintains a search path --
usually called the code path -- consisting of a list of directories,
which it searches sequentially when trying to load a module.
发件人:http://erlang.org/doc/man/erl.html
-pa Dir1 Dir2
Adds the specified directories to the beginning of the code path, similar to code:add_pathsa/1
.
-pz Dir1 Dir2
Adds the specified directories to the end of the code path, similar to code:add_pathsz/1
.
我试图修改 ejabberd-contrib
中的 mod_log_chat
模块,我在 build.sh
erl -pa ../ejabberd-dev/ebin -pz ebin -make
谁能解释一下 -pa
和 -pz
是什么?我没有从网上获得满意的信息。
发件人:http://erlang.org/doc/man/code.html
In interactive mode, the code server maintains a search path -- usually called the code path -- consisting of a list of directories, which it searches sequentially when trying to load a module.
发件人:http://erlang.org/doc/man/erl.html
-pa Dir1 Dir2
Adds the specified directories to the beginning of the code path, similar to
code:add_pathsa/1
.
-pz Dir1 Dir2
Adds the specified directories to the end of the code path, similar to
code:add_pathsz/1
.