[erlang-questions] Directory layout for installing 3rd party Erlang libs
lists@REDACTED
lists@REDACTED
Fri May 11 16:03:14 CEST 2012
Hi all,
I'm currently trying to improve the support my favorite Linux distro's
(Gentoo) support for Erlang by creating packages for some
Erlang-related tools and libraries. At the moment, there are hardly any
of them available through our package manager (just Erlang/OTP itself,
esdl, tsung and ejabberd). For this reason, there is no convention on
the directory layout yet: Where to put the beam files of 3rd party
Erlang libs, like getopt, esdl or erlware_commons?
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. But I'd prefer the second, because I
think it would be better to separate Erlang/OTP and 3rd-party libs,
even if they are all handled by a package manager.
Other programming languages, for example Python or Perl, use an
approach similar to 2) (at least on Gentoo): Python libs go
into /usr/lib/python2.7/site-packages, Perl libs
use /usr/lib/perl5/site_perl.
Does anybody know about drawbacks and other pros/cons of the two
approaches?
Thanks in advance,
aranea
More information about the erlang-questions
mailing list