【发布时间】:2016-05-12 01:54:06
【问题描述】:
我在 intelliJ 中构建了一个 ejabberd 模块,使用 rebar 进行编译,我收到错误“未定义的解析转换 '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"]}]}.
我在查看此站点上的响应后将这些行添加到配置文件中:
{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"}}},
然后我继续尝试“rebar get-deps”,但这失败了:
Pulling lager from {git,"https://github.com/basho/lager",{tag,"3.0.2"}}
ERROR: Rebar requires version {1,5} or higher of git to process {git,
"https://github.com/basho/lager",{tag,"3.0.2"}}
ERROR: 'get-deps' failed while processing C:/devxmpp/testMe: rebar_abort
所以我继续并下载了 git 2.7.x,但仍然是同样的错误。它没有看到新版本。
问候, 会
【问题讨论】: