缺少对hdf5的依赖:totem错误:克隆git存储库失败; git clome超时

时间:2017-08-04 06:50:49

标签: git torch luarocks

我尝试通过项目页面中的官方说明安装torch-hdf5,但发生了缺少的依赖性错误:

> $ luarocks make hdf5-0-0.rockspec LIBHDF5_LIBDIR="/usr/lib/x86_64-linux-gnu/"

Missing dependencies for hdf5:
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.255.113]: errno=Operation timed out
github.com[1: 192.30.255.112]: errno=Operation timed out


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

实际上,我可以使用git clone https://github.com/deepmind/torch-totem.git克隆图腾。我想知道在本地克隆它之后有任何方法可以安装torch-totem,就像luarocks make之类的那样。

1 个答案:

答案 0 :(得分:0)

我使用以下命令解决了依赖性问题:

git clone https://github.com/deepmind/torch-totem.git
cd torch-totem
cp rocks/totem-0-0.rockspec ./   #copy the rockspec file in the root dirctory of project
luarock make

然后消息显示如下:

Updating manifest for xxx/torch/install/lib/luarocks/rocks
totem 0-0 is now built and installed in xxx/torch/install/ (license: BSD)