diff options
author | Soumith Chintala <soumith@gmail.com> | 2016-04-13 22:20:58 +0300 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2016-04-13 22:20:58 +0300 |
commit | 31a0640146b17d97dded01cd26526ebb42c3684a (patch) | |
tree | 0e4a9b6fb08a47716ede25d3e046dc711f691d9d | |
parent | 9a5e645c62af4215ec197a98449c1b046ebbd70a (diff) | |
parent | 5bb0a998280048acd3b1ab9d927f124e53057a13 (diff) |
Merge pull request #45 from nicholas-leonard/install
added doc to install torch with Lua5.2
-rw-r--r-- | docs/00-getting-started.md | 19 |
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 |