【问题标题】:Missing dependency for hdf5: totem Error: Failed cloning git repository; git clome time outhdf5 缺少依赖项:totem 错误:克隆 git 存储库失败; git clome 超时
【发布时间】:2018-01-11 23:44:30
【问题描述】:

我尝试在项目页面按照官方说明安装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或类似的东西。

【问题讨论】:

    标签: git torch luarocks


    【解决方案1】:

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

    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)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多