Torch环境搭建
1)下载torch安装包的时候
git clone https://github.com/torch/distro.git ~/torch --recursive
有的时候会遇到
git error: RPC failed; curl 56 GnuTLS
或者
unable to access 'https://github.com/torch/luajit-rocks.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
后面用如下命令:
git config --global http.postBuffer 1048576000
先试了这个,没有效果。
sudo apt install openssl
sudo apt install gnutls-bin
后面用这两个命令就解决了。
2)一开始用命令
TORCH_LUA_VERSION=LUA52 ./install.sh
TORCH_LUA_VERSION=LUA51 ./install.sh
都会遇到hdf5的问题,无法解决,安装luajit就没问题。
unable to parse the header of hdf5
3)用
./install.sh
在服务器安装torch的时候会遇到如下问题,