错误提示为:
gamexg@vps3:~/exemplar$ rebar compile generate
==> rel (compile)
==> exemplar (compile)
Compiled src/exemplar_app.erl
Compiled src/exemplar_sup.erl
==> rel (generate)
ERROR: generate failed while processing /home/gamexg/exemplar/rel:
{'EXIT',{{badmatch,{error,"exemplar: : Missing application
directory."}},
[{rebar_reltool,generate,2,
[{file,"src/rebar_reltool.erl"},{line,50}]},
{rebar_core,run_modules,4,[{file,"src/rebar_core.erl"},{line,404}]},
{rebar_core,execute,5,[{file,"src/rebar_core.erl"},{line,333}]},
{rebar_core,process_dir0,6,[{file,"src/rebar_core.erl"},{line,195}]},
{rebar_core,process_each,5,[{file,"src/rebar_core.erl"},{line,266}]},
{rebar_core,process_dir0,6,[{file,"src/rebar_core.erl"},{line,171}]},
{rebar_core,process_commands,2,
[{file,"src/rebar_core.erl"},{line,60}]},
{rebar,main,1,[{file,"src/rebar.erl"},{line,56}]}]}}
系统是debian6,erl 试过R15B01 和R15B02了,rebar 也是最新版,都是一样的问题。
对了按文档上面写的R15B01 之后的版本生成的reltool.config应该是
{app, {exemplar, [{mod_cond, app}, {incl_cond, include}]}
但是我这里实际生成的却是
{sys, [
{lib_dirs, []},
按文档上面的说法这个是 R15B 以前的版本才会生成的配置文件,很奇怪的现象。
附件是生成的代码。