<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>Here is you problem: <b>{mod_cond, derived},</b></div><div><br></div><div>reltool tries to include only modules that are used by other modules. all other modules are excluded. </div><div>I would advise you to drop this option.</div><div><br></div><div>BTW, You can get more info about retool options here: </div><div><a href="http://learnyousomeerlang.com/release-is-the-word">http://learnyousomeerlang.com/release-is-the-word</a></div><div><br></div><div>- Dmitry</div><div><br></div><div><br></div><div><br><div><div>On Jul 30, 2013, at 9:46 AM, Barco You <<a href="mailto:barcojie@gmail.com">barcojie@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Here is my configurations. My application is called rlstock which depends on only jsx and gen_smtp.<div><br></div><div>reltool.config :</div><div><div>{sys, [</div><div>       {lib_dirs, ["../deps", "../apps"]},</div>
<div>       {erts, [{mod_cond, derived}, {app_file, strip}]},</div><div>       {app_file, strip},</div><div>       {rel, "rlstock", "0.1",</div><div>        [</div><div>         kernel,</div><div>         stdlib,</div>
<div>         sasl,</div><div>                 inets,</div><div>             jsx,</div><div>                 gen_smtp,</div><div>         rlstock</div><div>        ]},</div><div>       {rel, "start_clean", "",</div>
<div>        [</div><div>         kernel,</div><div>         stdlib</div><div>        ]},</div><div>       {boot_rel, "rlstock"},</div><div>       {profile, embedded},</div><div>       {incl_cond, derived},</div>
<div>       {mod_cond, derived},</div><div>       {excl_archive_filters, [".*"]}, %% Do not archive built libs</div><div>       {excl_sys_filters, ["^bin/.*", "^erts.*/bin/(dialyzer|typer)",</div>
<div>                           "^erts.*/(doc|info|include|lib|man|src)"]},</div><div>       {excl_app_filters, ["\.gitignore"]},</div><div>       {app, sasl,   [{incl_cond, include}]},</div><div>       {app, stdlib, [{incl_cond, include}]},</div>
<div>       {app, kernel, [{incl_cond, include}]},</div><div>       {app, crypto, [{incl_cond, include}]},</div><div>       {app, ssl, [{incl_cond, include}]},</div><div>       {app, public_key, [{incl_cond, include}]},</div>
<div>       {app, jsx, [{incl_cond, include}]},</div><div>       {app, rlstock, [{mod_cond, app}, {incl_cond, include}]},</div><div>       {app, hipe, [{incl_cond, exclude}]},</div><div>       {app, wx, [{incl_cond, exclude}]},</div>
<div>       {app, webtool, [{incl_cond, exclude}]}</div><div>      ]}.</div><div><br></div><div>{target_dir, "rlstock"}.</div><div><br></div><div>{overlay, [</div><div>           {mkdir, "log/sasl"},</div>
<div>           {copy, "files/erl", "\{\{erts_vsn\}\}/bin/erl"},</div><div>           {copy, "files/nodetool", "\{\{erts_vsn\}\}/bin/nodetool"},</div><div>           {copy, "files/rlstock", "bin/rlstock"},</div>
<div>           {copy, "files/rlstock.cmd", "bin/rlstock.cmd"},</div><div>           {copy, "files/start_erl.cmd", "bin/start_erl.cmd"},</div><div>           {copy, "files/install_upgrade.escript", "bin/install_upgrade.escript"},</div>
<div>           {copy, "files/sys.config", "releases/\{\{rel_vsn\}\}/sys.config"},</div><div>           {copy, "files/vm.args", "releases/\{\{rel_vsn\}\}/vm.args"}</div><div>          ]}.</div>
</div><div>------------------------------------------------------------------------------------------------------------------</div><div>rlstock.app</div><div><div>{application,rlstock,</div><div>             [{description,"Test Project."},</div>
<div>              {vsn,"0.1"},</div><div>              {modules,[agent,convert,dispatcher,rlstock,rlstock_app,</div><div>                        rlstock_sup,spider,spider_sup,utils]},</div><div>              {registered,[]},</div>
<div>              {applications,[kernel,stdlib,inets,gen_smtp,jsx]},</div><div>              {mod,{rlstock_app,[]}},</div><div>              {env,[]}]}.</div></div><div>-----------------------------------------------------------------------------------------------------------------------</div>
<div>rebar.config</div><div><div>{lib_dirs, ["apps"]}.</div><div><br></div><div>{sub_dirs, [</div><div>            "rel",</div><div>            "apps/rlstock"</div><div>        ]}.</div><div>
<br></div><div>{erl_opts, [debug_info, {i,"include"}]}.</div><div><br></div><div>{deps_dir, ["deps"]}.</div><div><br></div><div><br></div><div>{deps, [</div><div>        {gen_smtp, ".*", {git, "git://<a href="http://github.com/Vagabond/gen_smtp.git">github.com/Vagabond/gen_smtp.git</a>", "master"}},</div>
<div>        {jsx, ".*", {git, "git://<a href="http://github.com/talentdeficit/jsx.git">github.com/talentdeficit/jsx.git</a>", "master"}}</div><div>]}.</div></div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Jul 30, 2013 at 1:29 PM, Dmitry Kolesnikov <span dir="ltr"><<a href="mailto:dmkolesnikov@gmail.com" target="_blank">dmkolesnikov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto"><div>Hello,</div><div><br></div><div>It looks like some component is missing from release. Hard to say, reltool.config and apps deps are needed.</div><div><br></div><div>Try to check that all application deps are part of release<br>
<br>Best Regards,<div>Dmitry >-|-|-*></div><div><br></div></div><div><div class="h5"><div><br>On 30.7.2013, at 7.45, Barco You <<a href="mailto:barcojie@gmail.com" target="_blank">barcojie@gmail.com</a>> wrote:<br>
<br></div><blockquote type="cite"><div dir="ltr">The error like this:<div><br></div><div><div>{"init terminating in do_boot",{'cannot load',error_handler,get_files}}</div><div><br></div><div>Crash dump was written to: erl_crash.dump</div>

<div>init terminating in do_boot ()</div></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 30, 2013 at 12:44 PM, Barco You <span dir="ltr"><<a href="mailto:barcojie@gmail.com" target="_blank">barcojie@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I've finished making an application and can successfully start it from erl shell by using application:start(myapp). But, after I use rebar to release it I got a error as the subject when I start the App from the rel/myapp/bin/myapp. Any clues for that?</div>


<div><br></div><div>Thank you!</div><span><font color="#888888">Barco</font></span></div>
</blockquote></div><br></div>
</blockquote></div></div><blockquote type="cite"><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a></span><br>
<span><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></blockquote></div></blockquote></div><br></div>
</blockquote></div><br></div></body></html>