Skip to content

Commit

Permalink
Merge pull request #45 from nicholas-leonard/install
Browse files Browse the repository at this point in the history
added doc to install torch with Lua5.2
  • Loading branch information
soumith committed Apr 13, 2016
2 parents 9a5e645 + 5bb0a99 commit 31a0640
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions docs/00-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Torch can be installed to your home folder in ~/torch by running these three com
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
```
```

The [first script](https://raw.githubusercontent.com/torch/ezinstall/master/install-deps)
installs the basic package dependencies that LuaJIT and Torch require.
Expand All @@ -37,14 +37,29 @@ source ~/.bashrc
source ~/.zshrc
# On OSX or in Linux with none of the above.
source ~/.profile
```
```

If you ever need to uninstall torch, simply run the command:

```bash
rm -rf ~/torch
```

If you want to install torch with Lua 5.2 instead of LuaJIT, simply run:

```bash
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch

# clean old torch installation
./clean.sh
# optional clean command (for older torch versions)
# curl -s https://raw.githubusercontent.com/torch/ezinstall/master/clean-old.sh | bash

# https://github.com/torch/distro : set env to use lua
TORCH_LUA_VERSION=LUA52 ./install.sh
```

New packages can be installed using Luarocks from the command-line:

```bash
Expand Down

0 comments on commit 31a0640

Please sign in to comment.