无法通过防火墙安装distlearn

时间:2016-04-15 22:35:36

标签: git install torch

顺便说一句,我很高兴在火炬上运行AlexNet;现在我想安装 distlearn 来扩展模型。我已按照说明设置我的代理变量,使用直接wget命令测试它们。似乎luarocks执行序列中的某些内容没有正确导出代理shell变量:使用简单的命令

sudo luarocks install autograd

我收到错误

Missing dependencies for autograd:
totem 

Using https://raw.githubusercontent.com/torch/rocks/master/totem-0-0.rockspec... switching to 'build' mode
Cloning into 'torch-totem'...
fatal: unable to connect to github.com:
github.com[0: 192.30.252.123]: errno=Connection timed out


Error: Failed installing dependency: https://raw.githubusercontent.com/torch/rocks/master/totem-0-0.rockspec - Failed cloning git repository.

我尝试使用git clone下载repos(autograd,thrift,dataset,ipc),现在我得到了:

$ luarocks install distlearn
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/torch/rocks/master - Failed downloading https://raw.githubusercontent.com/torch/rocks/master/manifest - /home/hadoop/.cache/luarocks/https___raw.githubusercontent.com_torch_rocks_master/manifest
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master - Failed downloading https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest - /home/hadoop/.cache/luarocks/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master/manifest

......和......

$ luarocks install distlearn
Installing https://raw.githubusercontent.com/torch/rocks/master/distlearn-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/distlearn-scm-1.rockspec... switching to 'build' mode

Missing dependencies for distlearn:
ipc 
regress 

Using https://raw.githubusercontent.com/torch/rocks/master/ipc-scm-1.rockspec... switching to 'build' mode

Missing dependencies for ipc:
regress 

Using https://raw.githubusercontent.com/torch/rocks/master/regress-scm-1.rockspec... switching to 'build' mode
Cloning into 'regress'...
fatal: unable to connect to github.com:
github.com[0: 192.30.252.131]: errno=Connection timed out


Error: Failed installing dependency: https://raw.githubusercontent.com/torch/rocks/master/ipc-scm-1.rockspec - Failed installing dependency: https://raw.githubusercontent.com/torch/rocks/master/regress-scm-1.rockspec - Failed cloning git repository.

我是否潜入错误的兔子洞? 我需要修理什么?我需要获得更多诊断信息吗?

1 个答案:

答案 0 :(得分:1)

rockspec代码有一个内置的默认使用git协议的要求。从防火墙后面,必须使用HTTPS。 luarocks没有代理环境变量来从命令行配置它,因此安装失败。

幸运的是, 是一种重新配置 git 的方式:

sudo git config --global url."https://".insteadOf git://

这会强制所有git协议引用使用HTTPS。安装成功,我的模型代码运行到第一次编码失败的程度。