我在公司防火墙后面的红帽盒子上运行。我猜有些协议被阻止了,但我是 git 的新手,这是我第一次使用 luarocks。在我看来 luarocks 正在尝试使用 https:// 所以应该没有防火墙问题....但是错误消息暗示防火墙问题。
这是我所知道的:
我知道这个 git 命令在我的机器上运行良好。git 能够在本地克隆存储库,我可以从源代码构建 luarocks。
git clone https://github.com/torch/luajit-rocks.git
但是,此命令失败:
luarocks install cwrap
这是命令的输出
Installing https://raw.githubusercontent.com/torch/rocks/master/cwrap-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/cwrap-scm-1.rockspec... switching to 'build' mode
Initialized empty Git repository in /tmp/luarocks_cwrap-scm-1-8589/cwrap/.git/
github.com[0: 192.30.252.129]: errno=Connection timed out