<div dir="ltr"><div><div><div><div><div>Hello Brian,<br><br></div>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. <br><br></div>
However after solving this and adding a few more dependancies I am stuck again on adding ssl...the error is : <br><br>ERROR: Unexpected error: {'EXIT',<br> {{badmatch,<br> {error,<br>
{1,<br> [99,112,58,32,99,97,110,110,111,116,32,<br> 115,116,97,116,32,226,128,152,47,104,<br> 111,109,101,47,114,105,107,47,119,111,<br>
114,107,115,112,97,99,101,115,47,68,<br> 73,69,47,103,105,116,47,100,105,101,<br> 47,101,112,112,115,101,114,118,101,<br>
114,47,114,101,108,47,101,112,112,95,<br> 110,111,100,101,47,98,105,110,47,115,<br> 116,97,114,116,95,99,108,101,97,110,<br>
46,98,111,111,116,226,128,153,58,32,<br> 78,111,32,115,117,99,104,32,102,105,<br> 108,101,32,111,114,32,100,105,114,101,<br>
99,116,111,114,121,10]}}},<br> [{rebar_file_utils,cp_r,2,<br> <br><br></div>Any pointer would be appreciated.<br><br></div>Kind regards<br>
</div>Rik Ribbers<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 21, 2014 at 12:17 AM, Brian H. Ward <span dir="ltr"><<a href="mailto:glyphrider@gmail.com" target="_blank">glyphrider@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">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.</p>
<div class="gmail_quote"><div><div class="h5">On May 20, 2014 4:30 PM, "Rik Ribbers" <<a href="mailto:rik.ribbers@gmail.com" target="_blank">rik.ribbers@gmail.com</a>> wrote:<br type="attribution"></div></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<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" target="_blank">https://github.com/wg/epgsql.git</a>"}},<br> {epgsql_pool, ".*", {git, "<a href="https://github.com/josephwecker/epgsql_pool.git" target="_blank">https://github.com/josephwecker/epgsql_pool.git</a>"}},<br>
{erlsom, ".*", {git, "<a href="https://github.com/willemdj/erlsom.git" target="_blank">https://github.com/willemdj/erlsom.git</a>"}}<br>]}.<br><br><br></div>
<br></div></div>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div>
</blockquote></div><br></div>