代码之家  ›  专栏  ›  技术社区  ›  Beanocean

hdf5缺少依赖项:图腾错误:克隆git存储库失败;git clome超时

  •  0
  • Beanocean  · 技术社区  · 7 年前

    我试图安装 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 回复  |  直到 7 年前
        1
  •  0
  •   Beanocean    7 年前

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

    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)