luarocks 安装使用什么网络协议?
What network protocols does luarocks install use?
我 运行 在公司防火墙后面的 redhat 机器上。我猜某些协议被阻止了,但我是 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
LuaRocks 在可用时使用 LuaSocket 和 LuaSec 来执行 HTTP 和 HTTPS,但除此之外它只是服从外部命令,例如 git
。
你可以 运行 luarocks
加上 --verbose
标志,它会输出它调用的每个外部命令。然后你可以查看它正在调用的 git
命令行是什么,直接从命令行尝试。这应该有助于诊断是否有任何标志导致问题。
作为解决方法,您可以强制 git 通过以下命令使用 https:
git config --global url.https://github.com/.insteadOf git://github.com/
我 运行 在公司防火墙后面的 redhat 机器上。我猜某些协议被阻止了,但我是 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
LuaRocks 在可用时使用 LuaSocket 和 LuaSec 来执行 HTTP 和 HTTPS,但除此之外它只是服从外部命令,例如 git
。
你可以 运行 luarocks
加上 --verbose
标志,它会输出它调用的每个外部命令。然后你可以查看它正在调用的 git
命令行是什么,直接从命令行尝试。这应该有助于诊断是否有任何标志导致问题。
作为解决方法,您可以强制 git 通过以下命令使用 https:
git config --global url.https://github.com/.insteadOf git://github.com/