我试图在Ejabberd中添加davisp/jiffy作为钢筋依赖,因此我可以在我的模块中进行一些JSON解析。我发现this tutorial,他们将Jiffy添加为不同项目的依赖项,但它没有用。我稍微调整了一下,以匹配他们在Ejabberd中导入其他依赖项的方式,但它仍然无法正常工作。这就是我Deps
在rebar.config.script
中的样子:
Deps = [{p1_cache_tab, ".*", {git, "git://github.com/processone/cache_tab"}},
{p1_tls, ".*", {git, "git://github.com/processone/tls"}},
{p1_stringprep, ".*", {git, "git://github.com/processone/stringprep"}},
{p1_xml, ".*", {git, "git://github.com/processone/xml"}},
{esip, ".*", {git, "git://github.com/processone/p1_sip"}},
{jiffy, "0.*", {git, "git://github.com/davisp/jiffy"}},
{p1_stun, ".*", {git, "git://github.com/processone/stun"}},
{p1_yaml, ".*", {git, "git://github.com/processone/p1_yaml"}},
{ehyperloglog, ".*", {git, "https://github.com/vaxelfel/eHyperLogLog.git"}},
{p1_utils, ".*", {git, "git://github.com/processone/p1_utils"}}],
调用make
的输出:
ejabberd@ubuntuserver:~/ejabberd$ make
/usr/lib/erlang/bin/escript rebar skip_deps=true compile
==> rel (compile)
==> avalanche (compile)
Dependency not available: jiffy-0.* ({git,"git://github.com/davisp/jiffy"})
ERROR: compile failed while processing /home/ejabberd/avalanche: rebar_abort
make: *** [src] Error 1
我做错了什么?
答案 0 :(得分:5)
我不知道原因,但是make clean
然后make
再次使其成功。我通过在教程中制作Canillita的东西并发现它与Jiffy没有任何问题来解决这个问题,所以我认为这是因为我让它变得干净。