【问题标题】:Command 'escriptize not understood or not applicable命令 'escriptize 不理解或不适用
【发布时间】: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

我忘记了什么?

【问题讨论】:

    标签: erlang rebar


    【解决方案1】:

    即使您正在生成一个 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 才能正确生成脚本。

    【讨论】:

      猜你喜欢
      • 2012-03-09
      • 2019-09-10
      • 2022-08-18
      • 2023-03-12
      • 1970-01-01
      • 2021-05-09
      • 1970-01-01
      • 1970-01-01
      • 2021-06-17
      相关资源
      最近更新 更多