【发布时间】:2013-09-15 17:10:54
【问题描述】:
我已经创建了一个带有 rebar 的 OTP 应用程序框架:
$ rebar create-app appid=test
然后我用rebar compile编译它,当我运行时
$ erl -pa ebin -s test
我收到此错误
{"init terminating in do_boot",{undef,[{test,start,[],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
但如果我从 shell 中调用 start,它就可以工作:
$ erl -pa ebin
Erlang R15B01 (erts-5.9.1) [source] [smp:2:2] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.9.1 (abort with ^G)
1> application:start(test).
ok
如何从操作系统命令行启动应用程序?
编辑:
我认为我需要跑步
$ erl -pa ebin -s application start test
现在我没有收到任何错误,但应用程序仍未启动...
【问题讨论】:
标签: erlang