【问题标题】:Rebar Jiffy dependency not availableRebar Jiffy 依赖项不可用
【发布时间】:2015-05-22 06:37:07
【问题描述】:

我正在尝试在 Ejabberd 中添加 davisp/jiffy 作为 rebar 依赖项,这样我就可以在我的模块中进行一些 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

我做错了什么?

【问题讨论】:

    标签: ejabberd rebar jiffy


    【解决方案1】:

    我不知道为什么,但make clean 然后make 再次使它工作。我从教程中制作了 Canillita 的东西,发现它与 Jiffy 没有问题,所以我认为这是因为我把它弄干净了。

    【讨论】:

    • 我猜你在第一次制作后更改了配置选项。 Rebar 正在缓存下载的模块,并且不会自行强制下载新模块。以干净的方式从头开始迫使他这样做。
    猜你喜欢
    • 2019-11-02
    • 1970-01-01
    • 2013-02-08
    • 2014-09-18
    • 2011-10-25
    • 2012-04-21
    • 2015-06-22
    • 2012-03-15
    • 2016-07-15
    相关资源
    最近更新 更多