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

Christophe Romain christophe.romain@REDACTED
Wed Aug 5 11:23:48 CEST 2009


Hi

>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

to bypass this, cean's modified erl script uses this hack (using bin/erl,
that uses erlang/lib)

here=`which "$0"`
base=`dirname "$here"`/..
[ -z "$BASEDIR" ] && BASEDIR=`cd "$base"; pwd`
ROOTDIR="$BASEDIR/erlang"

it still allows to have several version installed, starting the one we
want, but allows to move the directory without breaking things.

regards.


More information about the erlang-questions mailing list