无法通过防火墙安装 distlearn
Can't install distlearn through a firewall
顺便说一句,我很高兴 运行 AlexNet on Torch;现在我想安装 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 克隆下载存储库(autograd、thrift、数据集、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.
我是不是跳错了兔子洞?
我需要修复什么?我需要获得更多诊断信息吗?
rockspec 代码具有使用 git 协议的内置默认要求。从防火墙后面,必须使用 HTTPS。 luarocks 没有代理环境变量可以从命令行配置这个,所以安装失败。
幸运的是,是一种重新配置git:
的方法
sudo git config --global url."https://".insteadOf git://
这会强制所有 git 协议引用改用 HTTPS。安装成功,我的模型代码运行到第一次编码失败。
顺便说一句,我很高兴 运行 AlexNet on Torch;现在我想安装 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 克隆下载存储库(autograd、thrift、数据集、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.
我是不是跳错了兔子洞? 我需要修复什么?我需要获得更多诊断信息吗?
rockspec 代码具有使用 git 协议的内置默认要求。从防火墙后面,必须使用 HTTPS。 luarocks 没有代理环境变量可以从命令行配置这个,所以安装失败。
幸运的是,是一种重新配置git:
的方法sudo git config --global url."https://".insteadOf git://
这会强制所有 git 协议引用改用 HTTPS。安装成功,我的模型代码运行到第一次编码失败。