erlang - Mongooseim with rabbitMQ: mochijson2 potentially included by two different applications -
i trying build mongooseim rabbitmq. im getting below error while doing make rel.
==> rel (generate) error: generate failed while processing /home/mongoose/mongooseim/rel: {'exit',{{badmatch,{error,"module mochijson2 potentially included 2 different applications: mochijson2 , rabbit_common."}}, [{rebar_reltool,generate,2,[]}, {rebar_core,run_modules,4,[]}, {rebar_core,execute,5,[]}, {rebar_core,process_dir1,6,[]}, {rebar_core,process_each,5,[]}, {rebar_core,process_dir1,6,[]}, {rebar_core,process_commands,2,[]}, {rebar,main,1,[]}]}} make: *** [rel] error 1 what should best way fix this? didnt info google. rebar configuration file below:
{ok, path} = file:get_cwd(), configureout = path ++ "/../configure.out", conf = case file:consult(configureout) of {ok, terms} -> terms; e -> io:format("warn: error ~p reading file: ~p - using default rel config~n", [e, configureout]), [] end, baseappstorun = [compiler, lager, kernel, mnesia, sasl, ssl, stdlib, ejabberd, inets, syntax_tools, p1_stringprep, exml, cowboy, fusco, folsom, exometer, xmerl, amqp_client, rabbit_common], appstorunin = baseappstorun ++ proplists:get_value(apps_to_run, conf, []), appstorun = ordsets:to_list(ordsets:from_list(appstorunin)), baseappstoinclude = appstorun ++ [asn1, crypto, public_key, goldrush, runtime_tools, p1_utils, ranch, cowlib, bear, mochijson2, p1_cache_tab, pa, base16, cuesport, alarms, idna, recon, setup, xmerl, amqp_client, rabbit_common], removedapps = [mysql,pgsql,redo,seestar,odbc], appstoincludein = baseappstoinclude ++ proplists:get_value(apps_to_include, conf, []), appstoinclude = ordsets:to_list(ordsets:from_list(appstoincludein)), includeapps = lists:map(fun(app) -> {app, app, [{incl_cond, include}]} end, appstoinclude), [{sys, [ {lib_dirs, ["../apps", "../deps"]}, {incl_cond, exclude}, {rel, "mongooseim", "", [mongoose | appstorun]}, {rel, "start_clean", "", [kernel,stdlib]}, {boot_rel, "mongooseim"}, {profile, embedded}, {excl_archive_filters, [".*"]}, % no archive built libs {excl_sys_filters, ["^bin/.*", "^erts.*/bin/(dialyzer|typer)"]}, {app, mongoose, [{incl_cond, include}, {lib_dir, ".."}]} ] ++ includeapps}, {target_dir, "mongooseim"}, {overlay_vars, "vars.config"}, {overlay, [{mkdir, "log/sasl"}, {copy, "files/erl", "\{\{erts_vsn\}\}/bin/erl"}, {copy, "files/nodetool", "\{\{erts_vsn\}\}/bin/nodetool"}, {copy, "files/mongooseim", "bin/mongooseim"}, {copy, "files/mongooseimctl", "bin/mongooseimctl"}, {copy, "files/app.config", "etc/app.config"}, {template, "files/vm.args", "etc/vm.args"}, {template, "files/ejabberd.cfg", "etc/ejabberd.cfg"}, {mkdir, "var"}, {mkdir, "var/log"} ]} ].
i have faced same problem before. there several ways solve problem.
use older version of
rabbitmq common.common's 2.8.2version doesn't containmochijson2module.in "reltool.config" file, try exclude
mochijson2rabbitmq common or mochiweb. ( need read release-related documents).
Comments
Post a Comment