[erlang-questions] Error with ./rebar generate: "erlsom: Application version clash. Multiple directories contains version \"1.2.1\"

Dániel Szoboszlay dszoboszlay@REDACTED
Wed May 21 09:50:27 CEST 2014


Hi,

The error message means the erlsom application was found in multiple directories. I guess the lib_dir option in {app, erlsom, [{incl_cond, include},{lib_dir,"../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)?

Regards.
Daniel

On 2014 May 20, at 22:01 , Rik Ribbers <rik.ribbers@REDACTED> wrote:

> Hello,
> 
> As a Erlang newbie I run into this error when using ./rebar generate
> 
> ==> rel (generate)
> 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\"."}},
> 
> I've included my reltool.config and my rebar.config. Any help is appreciated. 
> 
> Kind regards,
> Rik Ribbers
>  
> -- reltool.config
> 
> {sys, [
>        {lib_dirs, [".."]},
>        {erts, [{mod_cond, derived}, {app_file, strip}]},
>        {app_file, strip},
>        {rel, "myapplication_node", "1",
>         [
>          kernel,
>          stdlib,
>          sasl,
>          appmon,
>          asn1,
>          crypto,
>          epgsql_pool,
>          epgsql,
>          erlsom,
>          myapplication
>         ]},
>        {boot_rel, "myapplication_node"},
>        {profile, embedded},
>        {incl_cond, exclude},
>        {excl_archive_filters, [".*"]}, %% Do not archive built libs
>        {excl_sys_filters, ["^bin/(?!start_clean.boot)",
>                            "^erts.*/bin/(dialyzer|typer)",
>                            "^erts.*/(doc|info|include|lib|man|src)"]},
>        {excl_app_filters, ["\.gitignore"]},
>        {app, hipe, [{incl_cond, exclude}]},
>        {app, kernel, [{incl_cond, include}]},
>        {app, stdlib, [{incl_cond, include}]},
>        {app, sasl, [{incl_cond, include}]},
>        {app, appmon, [{incl_cond, include}]},
>        {app, asn1, [{incl_cond, include}]},
>        {app, crypto, [{incl_cond, include}]},
>        {app, epgsql, [{incl_cond, include},{lib_dir,"../deps/epgsql"}]},
>        {app, epgsql_pool, [{mod_cond, app}, {incl_cond, include},{lib_dir, "../deps/epgsql_pool"}]},
>        {app, erlsom, [{incl_cond, include},{lib_dir,"../deps/erlsom"}]},
>        {app, myapplication, [{mod_cond, app}, {incl_cond, include},{lib_dir,".."}]}
>  ]}.
>   
>  {target_dir, "myapplication_node"}.
>   
>  {overlay, [
>             {mkdir, "log/sasl"},
>             {copy, "files/erl", "\{\{erts_vsn\}\}/bin/erl"},
>             {copy, "files/nodetool", "\{\{erts_vsn\}\}/bin/nodetool"},
>             {copy, "myapplication_node/bin/start_clean.boot",
>                    "\{\{erts_vsn\}\}/bin/start_clean.boot"},
>             {copy, "files/myapplication_node", "bin/myapplication_node"},
>             {copy, "files/myapplication_node.cmd", "bin/myapplication_node.cmd"},
>             {copy, "files/start_erl.cmd", "bin/start_erl.cmd"},
> 
> --- rebar.config
> 
> {sub_dirs,["rel"]}.
>  
> {erl_opts, [debug_info,{i,"deps/erlsom/include"}]}.
>  
> {deps_dir, ["deps"]}.
>  
> {deps, [
>    {epgsql, ".*", {git, "https://github.com/wg/epgsql.git"}},
>    {epgsql_pool, ".*", {git, "https://github.com/josephwecker/epgsql_pool.git"}},
>    {erlsom, ".*", {git, "https://github.com/willemdj/erlsom.git"}}
> ]}.
> 
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140521/a54b3b76/attachment.htm>


More information about the erlang-questions mailing list