erlang - Cannot compile ejabberd when checked out from Git repository -
i have built ejabberd module in intellij using rebar compile , getting error "undefined parse transform 'lager_transform'"
rebar.config:
{erl_opts, [nowarn_deprecated_function, {d, 'lager', true}, {d, 'no_ext_lib'}, {i, ["c:/program files/ejabberd-15.11/bin"]}, {i, ["c:/program files/ejabberd-15.11/lib/ejabberd-15.11/include"]}]}.
i added these lines config file after checking responses on site:
{deps, [{lager, ".", {git, "https://github.com/basho/lager", {tag, "3.0.2"}}}, {p1_utils, ".", {git, "https://github.com/processone/p1_utils", {tag, "1.0.3"}}},
i proceed try "rebar get-deps" fail with:
pulling lager {git,"https://github.com/basho/lager",{tag,"3.0.2"}} error: rebar requires version {1,5} or higher of git process {git, "https://github.com/basho/lager",{tag,"3.0.2"}} error: 'get-deps' failed while processing c:/devxmpp/testme: rebar_abort
so proceed , downloaded git 2.7.x , still same error. not seeing new version.
regards, will
this duplicate of question: ejabberd , erlang installation lager_transform undefined
you need compile ejabberd described in ejabberd documentation, configure , make. rebar alone not enough set initial define values macro , result in part of code being incorrectly defined / compiled.
Comments
Post a Comment