Install dependencies. Uses apt-get
on Ubuntu, which might require sudo
. Uses brew
on OSX.
curl -s https://raw.githubusercontent.com/torch/distro/master/install-deps | bash
Install this repo, which installs the torch distribution, with a lot of nice goodies.
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; ./install.sh
By default Torch will install LuaJIT 2.1. If you want other options, you can use the command:
TORCH_LUA_VERSION=LUA51 ./install.sh
TORCH_LUA_VERSION=LUA52 ./install.sh
Now, everything should be installed. Either open a new shell, or source your profile via
. ~/.bashrc # or: . ~/.zshrc
th -e "print 'I just installed Torch! Yesss.'"
Note: If you use a non-standard shell, you'll want to run this command
./install/bin/torch-activate
Tested on Ubuntu 14.04, CentOS/RHEL 6.3 and OSX