Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 1.82 KB

INSTALL.md

File metadata and controls

46 lines (37 loc) · 1.82 KB

FBLuaLib: installation

One-step installation instructions

If you're on Ubuntu 13.10 or Ubuntu 14.04 (or higher), you can use the one-stop installation script:

curl -sk https://raw.githubusercontent.com/facebook/fblualib/master/install_all.sh | bash

This will install folly, fbthrift, Torch, TH++, and FBLuaLib.

NOTE that this will reinstall Torch, even if you already have it installed, and will use OpenBLAS as the BLAS library (which is the default). If you want to build Torch with a different BLAS library (such as MKL), you must edit the script.

You should reinstall Torch even if you already have it installed, as older versions do not install LuaJIT with Lua 5.2 compatibility. To check, run luajit -e ';;' -- if you get an error ("unexpected symbol near ';'"), then you need to reinstall. If you don't get an error, you may download and edit the script to comment out the lines that install Torch.

Detailed installation instructions

FBLuaLib is composed of a few separate (but interdependent) packages.

  1. Install TH++ by following the instructions
  2. Install a few additional packages; on Ubuntu 13.10 and 14.04, they are as follows (feel free to cut and paste the apt-get command below):
sudo apt-get install \
  libedit-dev \
  libmatio-dev \
  libpython-dev \
  python-numpy
  1. Build and install FBLuaLib; cd fblualib; ./build.sh or follow the steps in the script yourself.
  2. Try it out! run the default Torch shell (th) or, to use fb.repl, luajit -e "require('fb.trepl').repl()"