我试图将davisp/jiffy添加为Ejabberd中的钢筋依赖项,以便可以在模块中进行一些JSON解析。我找到了this tutorial,他们在其中将Jiffy添加为另一个项目的依赖项,但是没有用。我对其进行了一些调整,以匹配他们如何在Ejabberd中导入其他依赖项,但仍然无法正常工作。这是我的Depsrebar.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


我究竟做错了什么?

最佳答案

我不知道为什么,但是make clean然后make再次使其起作用。我通过在教程中制作Canillita东西,并发现它与Jiffy没问题,从而弄清楚了这一点,所以我认为这是因为我正在整理它。

关于ejabberd - 钢筋Jiffy依赖项不可用,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/30385261/

10-10 14:13