简体   繁体   English

当启动rebar3版本生成的应用程序时,出现错误:“ EXIT”,{undef,[{compile,forms……

[英]I got the error: 'EXIT',{undef,[{compile,forms, … when start the application generated by rebar3 release

The application can run well started by erlang shell -erl, but got the error: 该应用程序可以通过erlang shell -erl很好地运行,但是出现错误:

{"Kernel pid terminated",application_controller,"
{application_start_failure,gateway,{bad_return,{{gateway_app,start,[normal,[]]},
{'EXIT',{undef,[{compile,forms, ...

when started from _build/default/rel/xmxx/bin/xmxx. 从_build / default / rel / xmxx / bin / xmxx启动时。

the rebar.config is rebar.config是

{erl_opts, 
    [debug_info,
        {i, "include"},
        {outdir, "./ebin"},
        {src_dirs, ["src", "../../src"]}]}.
{deps, []}.

{relx, [{release, {xmxx, "0.0.1"}, [gateway, kernel, stdlib, sasl]},

    {sys_config, "./config/sys.config"},
    {vm_args, "./config/vm.args"},

    {dev_mode, true},
    {include_erts, false},
    {extended_start_script, true}]
}.

{profiles, 
    [{prod, 
        [{relx, [
            {dev_mode, false},
            {include_erts, true},
            {include_src, false}]
        }]
    }]
}.

the gateway.app.src is gateway.app.src是

{application, gateway, [
    {description, "This is server gateway."},
    {vsn, "0.0.1"},
    {registered, [gateway_sup]},
    {mod, {gateway_app, []}},
    {applications, [kernel, crypto, stdlib, sasl]},
    {env,[]},
    {modules, [xmxx_run]},
    {maintainers, []},
    {licenses, []},
    {links, []}
]}.

Any help would be appreciated! 任何帮助,将不胜感激!

它抱怨compile:forms是未定义的,可能是因为compilecompiler应用程序中,您没有包括在内。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM