From 5bb0a998280048acd3b1ab9d927f124e53057a13 Mon Sep 17 00:00:00 2001 From: nicholas-leonard Date: Wed, 13 Apr 2016 15:13:33 -0400 Subject: added doc to install torch with Lua5.2 --- docs/00-getting-started.md | 19 +++++++++++++++++-- 1 file 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 -- cgit v1.2.3