【发布时间】:2015-02-24 00:52:18
【问题描述】:
当我运行 ./rebar get-deps compile escriptize 时,它失败并显示以下内容:
WARN: 'escriptize' command does not apply to directory /path/to/foo
Command 'escriptize' not understood or not applicable
我忘记了什么?
【问题讨论】:
当我运行 ./rebar get-deps compile escriptize 时,它失败并显示以下内容:
WARN: 'escriptize' command does not apply to directory /path/to/foo
Command 'escriptize' not understood or not applicable
我忘记了什么?
【问题讨论】:
即使您正在生成一个 escript 包,rebar 仍然需要 foo.app 文件。如果您没有使用./rebar create-app appid=foo 创建“应用程序”,则需要手动创建一个:
{application, foo,
[
{description, ""},
{vsn, "1"},
{registered, []},
{applications, [
kernel, stdlib
]},
{env, []}
]}.
请注意,您可能需要再次./rebar compile 才能生成foo.app 文件,然后./rebar escriptize 才能正确生成脚本。
【讨论】: