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

github.com/torch/distro.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoumith <soumith@fb.com>2015-08-05 14:43:24 +0300
committersoumith <soumith@fb.com>2015-08-05 14:43:24 +0300
commitf08fc1fcd1e23b0fd43d83f84fe2a929ef1b3d9a (patch)
tree18d5ac54cc7585864050ddfc020fcd8488534abd /README.md
parent6a5f51bd66bc37d5053c907f9487c8101a50cf41 (diff)
info on installing Lua51/Lua52 with distro
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 8 insertions, 4 deletions
diff --git a/README.md b/README.md
index 79ba5b0..ec927d3 100644
--- a/README.md
+++ b/README.md
@@ -12,17 +12,21 @@ 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:
+```sh
+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
```sh
. ~/.bashrc # or: . ~/.zshrc
th -e "print 'I just installed Torch! Yesss.'"
```
-Note: If you use a non-standard shell, you'll want to add the following directories to your `PATH`
+Note: If you use a non-standard shell, you'll want to run this command
```sh
-export PATH=$HOME/torch/install/bin:$PATH
-export LD_LIBRARY_PATH=$HOME/torch/install/lib:$LD_LIBRARY_PATH
-export DYLD_LIBRARY_PATH=$HOME/torch/install/lib:$DYLD_LIBRARY_PATH
+./install/bin/torch-activate
```
Tested on Ubuntu 14.04, CentOS/RHEL 6.3 and OSX