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

Serge Aleynikov <>
Fri Aug 15 03:41:04 CEST 2008


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
> 




More information about the erlang-questions mailing list