“./rebar get-deps”处的连接超时/编译 EJabberd

Connection Timeout at "./rebar get-deps" / compiling EJabberd

我正在尝试在 CentOS6 上编译 eJabberd。我正在按照@ [https://www.process-one.net/docs/ejabberd/guide_en.html#htoc12][1]

中提到的步骤进行操作

但是,这会在执行 "make" 时因连接超时错误而中止。 以下是来自命令提示符的错误片段:

*

[root@CentOS-6-64-EN ejabberd-15.04]# make
rm -rf deps/.got
rm -rf deps/.built
/usr/lib64/erlang/bin/escript rebar get-deps && :> deps/.got
==> rel (get-deps)
==> ejabberd-15.04 (get-deps)
Pulling p1_cache_tab from {git,"git://github.com/processone/cache_tab",
                               "cca096330ce39e8b56fe0e0c478df1ff452e7751"}
github.com[0: 192.30.252.131]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)
Initialized empty Git repository in /root/Desktop/eJabberd/ejabberd-15.04/deps/p1_cache_tab/.git/
ERROR: git clone -n git://github.com/processone/cache_tab p1_cache_tab failed with error: 128 and output:
github.com[0: 192.30.252.131]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)
Initialized empty Git repository in /root/Desktop/eJabberd/ejabberd-15.04/deps/p1_cache_tab/.git/
ERROR: 'get-deps' failed while processing /root/Desktop/eJabberd/ejabberd-15.04: rebar_abort
make: *** [deps/.got] Error 1

*

在尝试命令“./rebar get-deps”时,我遇到了相同的连接超时错误。 我的网络连接很好,似乎 github link 坏了。请帮忙!

您应该尝试使用 https:// 而不是 git://

将依赖项 link 替换为 Github

它应该可以解决您的问题。 我们将检查项目以确保我们所有的依赖项都使用 https url 方案而不是 ssh.