简体   繁体   中英

Rebar3 release does not run and crash with cannot expand $ERTS_LIB_DIR in bootfile

Erlang Version = Erlang/OTP 19

I have created a new erlang application using rebar3 Here are the steps:

rebar3 new app myapp
rebar3 compile
rebar3 new release myrel
cd myrel
rebar3 release
cd myrel/myapp/_build/default/rel/myapp/bin
./myapp start

I get the following error:

init terminating in do_boot (cannot expand $ERTS_LIB_DIR in bootfile) Crash dump is being written to: erl_crash.dump...done

Can someone please check what I am missing here? Thanks.

If you do something like rebar3 as prod tar you should get a .tar.gz file that can be expanded on the server, with bin/myapp used to start/stop/attach. If you do something like rebar3 release , it'll build into _build/ , with the start/stop script being in _build/default/rel/myapp/bin/myapp . Why are you using rebar3 new release myrel ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM