erlang钢筋生成不起作用

时间:2015-01-16 17:09:26

标签: erlang rebar reltool

我只想使用rebar生成发布版,但它对我不起作用:

我正在执行以下步骤:

https://github.com/rebar/rebar/wiki/Release-handling

─$ rebar generate                                                          1 ↵
==> rel (generate)
ERROR: generate failed while processing /home/chinaxing/ssd/Code/erlang/apps/reijie_probe_message_mocker/rel: {'EXIT',
    {undef,
        [{reltool,start_server,
             [[{sys,
                   [{lib_dirs,[]},
                    {erts,[{mod_cond,derived},{app_file,strip}]},
                    {app_file,strip},
                    {rel,"reijie_node","1",[kernel,stdlib,sasl,reijie_node]},
                    {rel,"start_clean",[],[kernel,stdlib]},
                    {boot_rel,"reijie_node"},
                    {profile,embedded},
                    {incl_cond,derived},
                    {excl_archive_filters,[".*"]},
                    {excl_sys_filters,
                        ["^bin/(?!start_clean.boot)",
                         "^erts.*/bin/(dialyzer|typer)",
                         "^erts.*/(doc|info|include|lib|man|src)"]},
                    {excl_app_filters,[".gitignore"]},
                    {app,reijie_node,
                        [{mod_cond,app},
                         {incl_cond,include},
                         {lib_dirs,".."}]}]}]],
             []},
         {rebar_reltool,generate,2,[{file,"src/rebar_reltool.erl"},{line,53}]},
         {rebar_core,run_modules,4,[{file,"src/rebar_core.erl"},{line,491}]},
         {rebar_core,execute,6,[{file,"src/rebar_core.erl"},{line,416}]},
         {rebar_core,maybe_execute,8,[{file,"src/rebar_core.erl"},{line,300}]},
         {rebar_core,process_dir1,7,[{file,"src/rebar_core.erl"},{line,259}]},
         {rebar_core,process_commands,2,
             [{file,"src/rebar_core.erl"},{line,91}]},
         {rebar,main,1,[{file,"src/rebar.erl"},{line,58}]}]}}

目录布局是:

╭─chinaxing@chinaxing  ~/Code/erlang/apps/reijie_probe_message_mocker  
╰─$ tree -L 2
.
├── deps
│   ├── goldrush
│   ├── lager
│   └── udp_broker
├── ebin
│   ├── message_mocker.app
│   ├── message_mocker_app.beam
│   ├── message_mocker.beam
│   └── message_mocker_sup.beam
├── rebar.config
├── rel
│   ├── files
│   └── reltool.config
└── src
    ├── message_mocker_app.erl
    ├── message_mocker.app.src
    ├── message_mocker.erl
    └── message_mocker_sup.erl

8 directories, 10 files
╭─chinaxing@chinaxing  ~/Code/erlang/apps/reijie_probe_message_mocker  
╰─$ 

螺纹钢版本:

╰─$ rebar --version                                                         1 ↵
rebar 2.5.1 R16B03 20150115_160515 git 2.5.1-102-g25aca7e

erlang版本:

╰─$ erl -V 
Erlang R16B03 (erts-5.10.4) [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]

1 个答案:

答案 0 :(得分:0)

尝试安装erlang-reltool,这应该会有所帮助:

$ sudo apt-get update
$ sudo apt-get install erlang-reltool