我一直在尝试使用 Rebar 设置一个简单的 Erlang 应用程序,但无法让它工作。我按照http://skeptomai.com/?p=56上的说明进行操作,运行时./rebar -v generate
出现此错误:
==> Entering directory `/home/adam/erlang-test3/testing-rebar/apps/myapp'
WARN: 'generate' command does not apply to directory /home/adam/erlang-test3/testing-rebar/apps/myapp
==> Leaving directory `/home/adam/erlang-test3/testing-rebar/apps/myapp'
==> Entering directory `/home/adam/erlang-test3/testing-rebar/rel'
==> rel (generate)
{"init terminating in do_boot","Release mynode uses non existing application mynode"}
Crash dump was written to: erl_crash.dump
init terminating in do_boot (Release mynode uses non existing application mynode)
关注https://bitbucket.org/basho/rebar/wiki/ReleaseHandling时出现类似错误。关注http://www.metabrew.com/article/erlang-rebar-tutorial-generating-releases-upgrades时,我得到:
{"init terminating in do_boot",{undef,[{dummy_proj,start,[]},{init,start_it,1},{init,start_em,1}]}}
如何让钢筋工作?我的 Erlang 版本是Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:false]