1

我正在尝试使用eflame来分析 CouchDB 代码以调查我的应用程序中的一些性能问题。rebar.config.script我尝试在(https://github.com/apache/couchdb/blob/master/rebar.config.script)中添加 eflame 依赖项

但是,当我configure从源代码运行构建 CouchDB (2.0.0) 时出现错误:

Dependency not available: eflame-.* ({git,
                                      "git://github.com/proger/eflame.git",
                                      {branch,"master"}})
ERROR: compile failed while processing /tmp/couchdb: rebar_abort
Makefile:67: recipe for target 'couch' failed

我在 CouchDB 源代码中对 rebar.config.script 的更改是在下面添加了一行(当然,前一行中带有逗号)

{eflame, {url, "git://github.com/proger/eflame.git"}, {branch ,"master"}}

我尝试了指定依赖关系的各种组合,如rebar 文档中所示,但没有任何成功。(我考虑了MakeDeprebar.config.script 中函数中参数的顺序,因此尝试传递参数)

任何要解决的指针将不胜感激。谢谢!(注意:我不熟悉 Erlang 或 rebar ,所以请原谅任何明显的错误)

4

2 回答 2

1

看起来您的情况缺少的是元组的第二个参数,它需要版本号。如果您不需要特定的星号,您可以在那里使用星号:

{eflame, ".*", {git, "git://github.com/proger/eflame.git", {branch, "master"}}}

或者,如果您使用的是rebar3,则可以使用hex 包

{eflame, "1.0.1"}
于 2017-05-30T08:08:23.557 回答
0

这里有两个问题

1)我使用的钢筋版本不 > 1.5
2)我必须在执行钢筋编译之前添加 get-deps,如钢筋依赖问题帖子中给出的那样

于 2017-06-02T19:50:52.757 回答