Please refer to the Torch installation guide for details on how to make a fresh install of Torch on Linux or MacOS.
If on windows with msvc, please refer to this guide for details on installation and usage.
Globally installed dependencies can be installed via:
bash install-depsThe self-contained Lua and Torch installations are performed via:
./install.shBy default Torch will install LuaJIT 2.1. If you want other options, you can use the command:
# If a different version was installed, used ./clean.sh to clean it
TORCH_LUA_VERSION=LUA51 ./install.sh
TORCH_LUA_VERSION=LUA52 ./install.shTo update your already installed distro to the latest master branch of torch/distro simply run:
./update.shTo remove all the temporary compilation files you can run:
./clean.shTo remove the installation run:
# Warning: this will remove your current installation
rm -rf ./installYou may also want to remove the torch-activate entry from your shell start-up script (~/.bashrc or ~/.profile).
You can test that all libraries are installed properly by running:
./test.shTested on Ubuntu 16.04
NOTE: If you intend on downloading release directly from GitHub interface, note that it doesn't include submodules.
Please proceed as following to get all the file appropriately:
git clone https://github.com/PPC64/torch-distro.git --recursive
cd torch-distro
git checkout <RELEASE_NAME>
Otherwise ./install.sh will not work