Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/torch.github.io.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicholas-leonard <nick@nikopia.org>2016-04-13 22:13:33 +0300
committernicholas-leonard <nick@nikopia.org>2016-04-13 22:13:33 +0300
commit5bb0a998280048acd3b1ab9d927f124e53057a13 (patch)
tree0e4a9b6fb08a47716ede25d3e046dc711f691d9d
parent9a5e645c62af4215ec197a98449c1b046ebbd70a (diff)
added doc to install torch with Lua5.2
-rw-r--r--docs/00-getting-started.md19
1 files changed, 17 insertions, 2 deletions
diff --git a/docs/00-getting-started.md b/docs/00-getting-started.md
index 4f5b87a..fa6132e 100644
--- a/docs/00-getting-started.md
+++ b/docs/00-getting-started.md
@@ -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.
@@ -37,7 +37,7 @@ 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:
@@ -45,6 +45,21 @@ If you ever need to uninstall torch, simply run the command:
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