安装lua:
curl -R -O http://www.lua.org/ftp/lua-5.2.3.tar.gz
然后输入lua,发现提示,那么跟着提示安装对应版本就ok了:
sudo apt-get install lua5.2
安装torch:
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch;
bash install-deps;
./install.sh
安装完了可以试试输入:
th