[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help wanted: search paths for Erlang and Elixir
From: |
Ivan Sokolov |
Subject: |
Re: Help wanted: search paths for Erlang and Elixir |
Date: |
Wed, 19 Apr 2023 23:28:22 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Ivan Sokolov <ivan-p-sokolov@ya.ru> writes:
> In order for the Erlang runtime to find the installed application it
> must appear in the load path. If there is ERL_ROOTDIR in the
> environment, erl(1) will search for application directories in
> $ERL_ROOTDIR/lib and will add them to the load path. ([2] mentions
> $OTPROOT but it's probably an error in the documentation.)
It turns out that OTPROOT is not a real variable, but a placeholder for
the Erlang installation directory, and ERL_ROOTDIR is intented for
internal use only. Thus ERL_LIBS is the only option left.
> [2]: https://www.erlang.org/doc/man/code.html#code-path