|
2 | 2 |
|
3 | 3 | # For those new, please use the instructions from our website to install torch: http://torch.ch/docs/getting-started.html#_
|
4 | 4 |
|
5 |
| -The goal of this script is to enable one line installs. To install Torch on any machine, just do: |
6 |
| - |
7 |
| -```bash |
8 |
| -curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-all | bash |
9 |
| -``` |
10 |
| - |
11 |
| -Once installed, you should be able to run Torch with basic libraries: |
12 |
| - |
13 |
| -```bash |
14 |
| -luajit -ltorch |
15 |
| -# or, using our improved LuaJIT interpreter: |
16 |
| -th -lparallel -loptim -lpl -limage |
17 |
| -``` |
18 |
| - |
19 |
| -This script has been tested on MacOS X 10.8, Ubuntu 12.04 and Fedora 20. It should work on earlier Ubuntus and MacOS Xs, but other platforms are not supported. |
20 |
| - |
21 |
| -On Ubuntu and Fedora you'll need 'sudo' privileges, as the default install is global, and the script needs to install dependencies. |
22 |
| - |
23 |
| -If you've already installed the dependencies, and don't have root privileges, you can use this command to just install Torch: |
24 |
| - |
25 |
| -```bash |
26 |
| -curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-luajit+torch | bash |
27 |
| -``` |
28 |
| - |
29 |
| -By default, it will install Torch in /usr/local/ , you can override this default path by doing: |
30 |
| - |
31 |
| -```bash |
32 |
| -curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-luajit+torch | PREFIX=~/local bash |
33 |
| -``` |
34 |
| - |
35 |
| -We install Luarocks along with LuaJIT and Torch, so you can easily install new packages: |
36 |
| - |
37 |
| -```bash |
38 |
| -luarocks search lua-cjson |
39 |
| -luarocks install lua-cjson |
40 |
| -``` |
41 |
| - |
42 |
| -By default, luarocks includes a link to our own Rocks repository, hosted [here](https://github.com/torch/rocks). If you wish to publish your packages as rocks for Torch, simply clone this repo, add your rocks, and make a pull request on Github! |
43 | 5 |
|
44 | 6 | ## Updating from a previous version
|
45 | 7 | Note that if you are coming from a previous version you are advise to clean up the old installation with the following command
|
|
0 commit comments