erlang module load path how to ERL_LIBS

erl -env ERL_LIBS "/my/path/to/module"
export ERL_LIBS=/my/path/to/module
erl -pa /my/path/to/module

erlc -o /dir/to/save/compiled/file mymodule.erl

NOTE:Modules must reside in a file with the same name as the file.

NOTE:the lib path will not load if it doesn't contain a ebin dir

$ export ERL_LIBS=/Users/joe/mymodule; erl

You can test to see if the path loaded with


Popular posts from this blog

Vim vi how to reload a file your editing