我正在尝试在 Ejabberd 中添加davisp/jiffy作为 rebar 依赖项,这样我就可以在我的模块中进行一些 JSON 解析。我找到了这个教程,他们在其中添加 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
我究竟做错了什么?