[erlang-questions] Directory layout for installing 3rd party Erlang libs

Peter Lemenkov <>
Fri May 11 16:24:49 CEST 2012


Hello.

2012/5/11  <>:

> There are two (main) possibilities:
> 1) Put them to the same dir were the libs from Erlang/OTP itself reside
>   --> /usr/lib/erlang/lib/getopt-0.4.3
> 2) Create an own directory for them and add it to the ERL_LIBS
>   environment variable
>   --> e.g. /usr/lib/erlang-site/getopt-0.4.3
>
> Debian uses the first approach.

Fedora/EPEL does the same.

> think it would be better to separate Erlang/OTP and 3rd-party libs,

Why do you think it's better? Could you please elaborate on this?

> Does anybody know about drawbacks and other pros/cons of the two
> approaches?

Increasing complexity is an obvious drawback of the second option.
However the former one doesn't handle arch-independent packages in the
optimal way.

-- 
With best regards, Peter Lemenkov.



More information about the erlang-questions mailing list