我尝试通过项目页面的官方说明安装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或类似的东西那样安装它。
发布于 2017-08-04 15:00:30
我使用以下命令解决了依赖问题:
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)https://stackoverflow.com/questions/45499973
复制相似问题