[erlang-questions] Fwd: mysterious reltool exception

Siri Hansen <>
Thu Nov 17 12:22:28 CET 2011


(sorry - forgot to copy to the list)

---------- Forwarded message ----------
From: Siri Hansen <>
Date: 2011/11/17
Subject: Re: [erlang-questions] mysterious reltool exception
To: Nikola Skoric <>


Hi Nikola!

You are using a quite old reltool, so I would consider upgrading it...
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??

/siri


2011/11/17 Nikola Skoric <>

> 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."
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20111117/a60f76aa/attachment.html>


More information about the erlang-questions mailing list