[erlang-questions] Deploying applications: proper ERL_LIB setting.

Brian Troutwine <>
Fri Aug 15 04:04:20 CEST 2008


Thank you. That was indeed the problem.

On 8/14/08, Serge Aleynikov <> wrote:
> There is a typo in docs of R12B-3.  The env name is ERL_LIBS.  Do:
>
>  export ERL_LIBS=/home/blt/lib
>
>
>  Serge.
>
>  Brian Troutwine wrote:
>
> >
> > Hello all,
> >
> > What is the proper way to set Erlang environment variables in order to
> > run applications? I would like to deploy an OTP structured application
> > but am currently stuck. For reference,\
> >  here's my filesystem layout, with "hatstand" being the application
> > in question:
> >
> > /home/blt
> > |-- lib
> > |   `-- hatstand-1.0 -> /home/blt/src/lib/hatstand-1.0/
> > `-- src
> >    `-- hatstand-1.0
> >        |-- Makefile
> >        |-- ebin
> >        |   `-- hatstand_app.app
> >        |-- priv
> >        `-- src
> >            |-- Makefile
> >            |-- hatstand.erl
> >            |-- hatstand_app.erl
> >            `-- hatstand_sup.erl
> >
> > In my bashrc I have "export ERL_LIB=/home/blt/lib/". Upon starting
> > erlang and issuing "application:start(hatstand_app)" I'm
> greated with
> > "{error,{"no such file or directory","hatst\
> > and_app.app"}}". In fact, I have no luck starting hatstand unless I
> > give "-pa /home/blt/lib/hatstand-1.0/ebin" as an argument
> to Erlang.
> >
> > What do I set ERL_LIB to and how do I invoke erl so that
> > application:start(hatstand_app) will not fail?
> >
> > Thanks,
> > Brian
> > _______________________________________________
> > erlang-questions mailing list
> > 
> > http://www.erlang.org/mailman/listinfo/erlang-questions
> >
> >
>
>


-- 
Brian



More information about the erlang-questions mailing list