[erlang-questions] Error with ./rebar generate: "erlsom: Application version clash. Multiple directories contains version \"1.2.1\"
Rik Ribbers
rik.ribbers@REDACTED
Wed May 21 20:31:43 CEST 2014
Hello Brian,
The problem was indeed that I installed erlsom manually before I got to
into rebar, removing it solved the problem. Thank you for your reply.
However after solving this and adding a few more dependancies I am stuck
again on adding ssl...the error is :
ERROR: Unexpected error: {'EXIT',
{{badmatch,
{error,
{1,
[99,112,58,32,99,97,110,110,111,116,32,
115,116,97,116,32,226,128,152,47,104,
111,109,101,47,114,105,107,47,119,111,
114,107,115,112,97,99,101,115,47,68,
73,69,47,103,105,116,47,100,105,101,
47,101,112,112,115,101,114,118,101,
114,47,114,101,108,47,101,112,112,95,
110,111,100,101,47,98,105,110,47,115,
116,97,114,116,95,99,108,101,97,110,
46,98,111,111,116,226,128,153,58,32,
78,111,32,115,117,99,104,32,102,105,
108,101,32,111,114,32,100,105,114,101,
99,116,111,114,121,10]}}},
[{rebar_file_utils,cp_r,2,
Any pointer would be appreciated.
Kind regards
Rik Ribbers
On Wed, May 21, 2014 at 12:17 AM, Brian H. Ward <glyphrider@REDACTED>wrote:
> Make sure the library in question is not installed in your Erlang lib
> directory (where you installed Erlang). We used to install our software
> into the lib directory to make patching easier; bit couldn't do a rebar
> generate while those libraries were installed.
> On May 20, 2014 4:30 PM, "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/c8d7fceb/attachment.htm>
More information about the erlang-questions
mailing list