命令'escriptize不理解或不适用

时间:2015-02-23 16:52:18

标签: erlang rebar

当我运行./rebar get-deps compile escriptize时,它失败并显示以下内容:

WARN:  'escriptize' command does not apply to directory /path/to/foo
Command 'escriptize' not understood or not applicable

我忘记了什么?

1 个答案:

答案 0 :(得分:2)

即使您正在生成escript包,钢筋仍然需要foo.app文件。如果您没有使用./rebar create-app appid=foo创建“应用程序”,则需要手动创建一个:

{application, foo,
 [
  {description, ""},
  {vsn, "1"},
  {registered, []},
  {applications, [
                  kernel, stdlib
                 ]},
  {env, []}
 ]}.

请注意,在./rebar compile正确生成脚本之前,您可能需要再次foo.app生成./rebar escriptize文件。