Skip to content
/ distro Public
forked from torch/distro

Torch installation in a self-contained folder

License

Notifications You must be signed in to change notification settings

marsbzp/distro

 
 

Repository files navigation

Build Status

Self-contained Torch installation

Install dependencies. Uses apt-get on Ubuntu, which might require sudo. Uses brew on OSX.

curl -s https://raw.githubusercontent.com/torch/distro/master/install-deps | bash

Install this repo, which installs the torch distribution, with a lot of nice goodies.

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:

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

. ~/.bashrc  # or: . ~/.zshrc
th -e "print 'I just installed Torch! Yesss.'"

Note: If you use a non-standard shell, you'll want to run this command

./install/bin/torch-activate

Tested on Ubuntu 14.04, CentOS/RHEL 6.3 and OSX

About

Torch installation in a self-contained folder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 86.4%
  • CMake 13.6%