【问题标题】:Erlang gproc compilation failedErlang gproc 编译失败
【发布时间】:2023-03-14 22:59:01
【问题描述】:

为了从 uwiger 编译 gproc,我似乎遇到了一些问题。

我已获取 ZIP here

解压后就完成了

$./rebar get-deps
==> gproc (get-deps)
Pulling edown from {git,"git://github.com/esl/edown.git","HEAD"}
Cloning into 'edown'...
Pulling gen_leader from {git,"git://github.com/abecciu/gen_leader_revival.git",
                             "HEAD"}
Cloning into 'gen_leader'...
==> edown (get-deps)
==> gen_leader (get-ups)

$make
rebar compile
==> edown (compile)
Compiled src/edown_make.erl
Compiled src/edown_xmerl.erl
Compiled src/edown_lib.erl
Compiled src/edown_doclet.erl
Compiled src/edown_layout.erl
==> gen_leader (compile)
Compiled src/gen_leader.erl
==> gproc (compile)
ERROR: git describe --always --tags `git log -n 1 --pretty=format:%h .` failed with error: 128 and output:
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git

make: *** [compile] Error 1

我似乎无法摆脱这个错误,它无法正确编译我在 ebin 目录中没有 gproc.app。

我正在使用 Mac OS X Lion。

有什么建议吗?

【问题讨论】:

    标签: compilation erlang rebar


    【解决方案1】:

    这些天我使用了和你一样的操作系统(mac os lion)并测试了 gproc。

    作者直到2012年5月2日才更改源代码。您是什么时候得到源代码的?

    但我使用“sourcetree”从 git 获取源代码并获取所有补丁,而不是从 zip 获取文件。 编译正常,虽然问题不大。

    另外,“gproc_dist_tests.erl”的eunit测试在mac os中存在问题,稍后会发现。

    【讨论】:

    • 嗨陈,昨天刚拿到...但这似乎是一个 git 错误...我有 1.7.9.5 版本,似乎是最新的(最后一个版本是 1.7. 9.6,五天前发布)
    • 你究竟做了什么来编译 gproc ?也许我在这里做错了什么......
    • 好的,我得到了它,而不是从 github 网站下载 zip,我直接克隆了 got 存储库,现在它可以正常工作了!谢谢你让我上路。
    猜你喜欢
    • 1970-01-01
    • 2021-11-26
    • 2021-10-07
    • 2017-03-14
    • 2021-06-14
    • 2021-01-29
    • 2018-11-06
    • 1970-01-01
    • 2013-02-01
    相关资源
    最近更新 更多