<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi,<div><br></div><div>The error message means the erlsom application was found in multiple directories. I guess the lib_dir option in {app, erlsom, [{incl_cond, include},{<b>lib_dir</b>,"../deps/erlsom"}]} confuses reltool (you normally donít need this option for dependencies, rebar tells reltool where to find them), or maybe thereís an other copy at ../erlsom (as you declare .. as a lib_dir in reltool.config)?</div><div><br></div><div>Regards.</div><div>Daniel</div><div><br><div><div>On 2014 May 20, at 22:01 , Rik Ribbers <<a href="mailto:rik.ribbers@gmail.com">rik.ribbers@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hello,<br><br>As a Erlang newbie I run into this error when using ./rebar generate<br><br>==> rel (generate)<br>ERROR: generate failed while processing /home/rik/workspaces/git/myapplication/rel: {'EXIT',{{badmatch,{error,"erlsom: Application version clash. Multiple directories contains version \"1.2.1\"."}},<br>
<br>I've included my reltool.config and my rebar.config. Any help is appreciated. <br><br>Kind regards,<br>Rik Ribbers<br> <br>-- reltool.config<br><br>{sys, [<br>       {lib_dirs, [".."]},<br>       {erts, [{mod_cond, derived}, {app_file, strip}]},<br>
       {app_file, strip},<br>       {rel, "myapplication_node", "1",<br>        [<br>         kernel,<br>         stdlib,<br>         sasl,<br>         appmon,<br>         asn1,<br>         crypto,<br>
         epgsql_pool,<br>         epgsql,<br>         erlsom,<br>         myapplication<br>        ]},<br>       {boot_rel, "myapplication_node"},<br>       {profile, embedded},<br>       {incl_cond, exclude},<br>
       {excl_archive_filters, [".*"]}, %% Do not archive built libs<br>       {excl_sys_filters, ["^bin/(?!start_clean.boot)",<br>                           "^erts.*/bin/(dialyzer|typer)",<br>
                           "^erts.*/(doc|info|include|lib|man|src)"]},<br>       {excl_app_filters, ["\.gitignore"]},<br>       {app, hipe, [{incl_cond, exclude}]},<br>       {app, kernel, [{incl_cond, include}]},<br>
       {app, stdlib, [{incl_cond, include}]},<br>       {app, sasl, [{incl_cond, include}]},<br>       {app, appmon, [{incl_cond, include}]},<br>       {app, asn1, [{incl_cond, include}]},<br>       {app, crypto, [{incl_cond, include}]},<br>
       {app, epgsql, [{incl_cond, include},{lib_dir,"../deps/epgsql"}]},<br>       {app, epgsql_pool, [{mod_cond, app}, {incl_cond, include},{lib_dir, "../deps/epgsql_pool"}]},<br>       {app, erlsom, [{incl_cond, include},{lib_dir,"../deps/erlsom"}]},<br>
       {app, myapplication, [{mod_cond, app}, {incl_cond, include},{lib_dir,".."}]}<br> ]}.<br>  <br> {target_dir, "myapplication_node"}.<br>  <br> {overlay, [<br>            {mkdir, "log/sasl"},<br>
            {copy, "files/erl", "\{\{erts_vsn\}\}/bin/erl"},<br>            {copy, "files/nodetool", "\{\{erts_vsn\}\}/bin/nodetool"},<br>            {copy, "myapplication_node/bin/start_clean.boot",<br>
                   "\{\{erts_vsn\}\}/bin/start_clean.boot"},<br>            {copy, "files/myapplication_node", "bin/myapplication_node"},<br>            {copy, "files/myapplication_node.cmd", "bin/myapplication_node.cmd"},<br>
            {copy, "files/start_erl.cmd", "bin/start_erl.cmd"},<br><br>--- rebar.config<br><br>{sub_dirs,["rel"]}.<br> <br>{erl_opts, [debug_info,{i,"deps/erlsom/include"}]}.<br> <br>
{deps_dir, ["deps"]}.<br> <br>{deps, [<br>   {epgsql, ".*", {git, "<a href="https://github.com/wg/epgsql.git">https://github.com/wg/epgsql.git</a>"}},<br>   {epgsql_pool, ".*", {git, "<a href="https://github.com/josephwecker/epgsql_pool.git">https://github.com/josephwecker/epgsql_pool.git</a>"}},<br>
   {erlsom, ".*", {git, "<a href="https://github.com/willemdj/erlsom.git">https://github.com/willemdj/erlsom.git</a>"}}<br>]}.<br><br><br></div>
_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>http://erlang.org/mailman/listinfo/erlang-questions<br></blockquote></div><br></div></body></html>