https://github.com/the404hacking/distro
Torch installation in a self-contained folder.
https://github.com/the404hacking/distro
Last synced: 16 days ago
JSON representation
Torch installation in a self-contained folder.
- Host: GitHub
- URL: https://github.com/the404hacking/distro
- Owner: The404Hacking
- License: bsd-3-clause
- Created: 2017-10-17T20:27:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-17T20:27:54.000Z (about 8 years ago)
- Last Synced: 2025-01-19T13:15:09.638Z (12 months ago)
- Language: CMake
- Size: 54.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://travis-ci.org/torch/distro)
#### NOTE: Torch is not actively developed anymore and is in maintenance mode.
Self-contained Torch installation
============
#### Please refer to the [Torch installation guide](http://torch.ch/docs/getting-started.html#_) 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](win-files/README.md) for details on installation and usage.
## Repo content
#### Dependencies
Globally installed dependencies can be installed via:
```bash
bash install-deps
```
#### Lua and Torch
The self-contained Lua and Torch installations are performed via:
```bash
./install.sh
```
By default Torch will install LuaJIT 2.1. If you want other options, you can use the command:
```bash
# If a different version was installed, used ./clean.sh to clean it
TORCH_LUA_VERSION=LUA51 ./install.sh
TORCH_LUA_VERSION=LUA52 ./install.sh
```
## Update
To update your already installed distro to the latest `master` branch of `torch/distro` simply run:
```bash
./update.sh
```
## Cleaning
To remove all the temporary compilation files you can run:
```bash
./clean.sh
```
To remove the installation run:
```bash
# Warning: this will remove your current installation
rm -rf ./install
```
You may also want to remove the `torch-activate` entry from your shell start-up script (`~/.bashrc` or `~/.profile`).
## Test
You can test that all libraries are installed properly by running:
```bash
./test.sh
```
Tested on Ubuntu 14.04, CentOS/RHEL 6.3 and OSX