[erlang-questions] Stuff that breaks when you move it

Dave Smith dizzyd@REDACTED
Mon Aug 3 15:36:00 CEST 2009


On Mon, Aug 3, 2009 at 7:04 AM, Joe Armstrong<erlang@REDACTED> wrote:

> Experiment:
>
>    # cd /usr/local/lib
>    # mv erlang globble
>    # globble/bin/erl
>    exec: 28: /usr/local/lib/erlang/erts-5.7.1/bin/erlexec: not found
>
> Thus Erlang is in B.
>
> But it doesn't have to be so - this is a bug not a feature

+1.

I've never understood why the Erlang distribution embeds absolute
paths into all the executables generated. It seems to me that
requiring something akin to the JAVA_HOME environment variable would
be a better solution which ensures portability across directory
structures and machines.

My $0.02 :)

D.


More information about the erlang-questions mailing list