(sorry - forgot to copy to the list)<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Siri Hansen</b> <span dir="ltr"><<a href="mailto:erlangsiri@gmail.com">erlangsiri@gmail.com</a>></span><br>
Date: 2011/11/17<br>Subject: Re: [erlang-questions] mysterious reltool exception<br>To: Nikola Skoric <<a href="mailto:nskoric@gmail.com">nskoric@gmail.com</a>><br><br><br>Hi Nikola!<div><br></div><div>You are using a quite old reltool, so I would consider upgrading it...</div>
<div>Anyway, I'm guessing now, but I suspect that the problem is that the lib_dirs you provide is really the application directory and not the lib dir... could that be correct? What I mean is that maybe lib_dirs should be set to /home/nick/code instead of /home/nick/code/egon_server??</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>/siri</div></font></span><div class="HOEnZb"><div class="h5"><div><br></div><div><br><div class="gmail_quote">2011/11/17 Nikola Skoric <span dir="ltr"><<a href="mailto:nskoric@gmail.com" target="_blank">nskoric@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So, this is my erlang app: <a href="https://github.com/egon-sim/egon_server" target="_blank">https://github.com/egon-sim/egon_server</a><br>
I've been successfully creating releases on WinXP using this rel file:<br>
<a href="https://github.com/egon-sim/egon_server/blob/master/releases/egon_server.rel" target="_blank">https://github.com/egon-sim/egon_server/blob/master/releases/egon_server.rel</a><br>
Now I'd like to create a linux release, and maintaining two .rel files<br>
is tiresome, so I decided to migrate to reltool which is, I hear,<br>
easier to maintain. I'm using this tutorial:<br>
<a href="http://learnyousomeerlang.com/release-is-the-word" target="_blank">http://learnyousomeerlang.com/release-is-the-word</a><br>
<br>
So, this is what I do:<br>
nick@miljenko:~/code/egon_server/releases$ erl<br>
Erlang R13B03 (erts-5.7.4) [source] [smp:4:4] [rq:4] [async-threads:0]<br>
[hipe] [kernel-poll:false]<br>
<br>
Eshell V5.7.4  (abort with ^G)<br>
1> {ok, Conf} = file:consult("egon_server.0.1.config").<br>
{ok,[{sys,[{lib_dirs,["/home/nick/code/egon_server/"]},<br>
           {rel,"egon_server","0.1",[kernel,sasl,stdlib,egon_server]},<br>
           {boot_rel,"egon_server"},<br>
           {relocatable,true},<br>
           {profile,standalone},<br>
           {app,egon_server,[{vsn,"0.0.1"},{debug_info,keep}]}]}]}<br>
2> {ok, Spec} = reltool:get_target_spec(Conf).<br>
** exception exit: {badmatch,false}<br>
     in function  reltool_target:app_to_rel/2<br>
     in call from reltool_target:'-gen_rel/2-lc$^0/1-0-'/2<br>
     in call from reltool_target:'-gen_rel/2-lc$^0/1-0-'/2<br>
     in call from reltool_target:gen_rel/2<br>
     in call from reltool_target:do_spec_rel_files/2<br>
     in call from reltool_target:'-spec_rel_files/1-lc$^0/1-0-'/2<br>
     in call from reltool_target:spec_rel_files/1<br>
     in call from reltool_target:do_gen_spec/1<br>
3><br>
<br>
Google doesn't know anything about reltool_target. Do you? :-)<br>
<span><font color="#888888"><br>
--<br>
"Strange women lying in ponds distributing swords is no basis for a<br>
system of government."<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</font></span></blockquote></div><br></div>
</div></div></div><br>