[erlang-questions] mysterious reltool exception

Nikola Skoric <>
Thu Nov 17 10:57:23 CET 2011


So, this is my erlang app: https://github.com/egon-sim/egon_server
I've been successfully creating releases on WinXP using this rel file:
https://github.com/egon-sim/egon_server/blob/master/releases/egon_server.rel
Now I'd like to create a linux release, and maintaining two .rel files
is tiresome, so I decided to migrate to reltool which is, I hear,
easier to maintain. I'm using this tutorial:
http://learnyousomeerlang.com/release-is-the-word

So, this is what I do:
:~/code/egon_server/releases$ erl
Erlang R13B03 (erts-5.7.4) [source] [smp:4:4] [rq:4] [async-threads:0]
[hipe] [kernel-poll:false]

Eshell V5.7.4  (abort with ^G)
1> {ok, Conf} = file:consult("egon_server.0.1.config").
{ok,[{sys,[{lib_dirs,["/home/nick/code/egon_server/"]},
           {rel,"egon_server","0.1",[kernel,sasl,stdlib,egon_server]},
           {boot_rel,"egon_server"},
           {relocatable,true},
           {profile,standalone},
           {app,egon_server,[{vsn,"0.0.1"},{debug_info,keep}]}]}]}
2> {ok, Spec} = reltool:get_target_spec(Conf).
** exception exit: {badmatch,false}
     in function  reltool_target:app_to_rel/2
     in call from reltool_target:'-gen_rel/2-lc$^0/1-0-'/2
     in call from reltool_target:'-gen_rel/2-lc$^0/1-0-'/2
     in call from reltool_target:gen_rel/2
     in call from reltool_target:do_spec_rel_files/2
     in call from reltool_target:'-spec_rel_files/1-lc$^0/1-0-'/2
     in call from reltool_target:spec_rel_files/1
     in call from reltool_target:do_gen_spec/1
3>

Google doesn't know anything about reltool_target. Do you? :-)

-- 
"Strange women lying in ponds distributing swords is no basis for a
system of government."



More information about the erlang-questions mailing list