Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Latest commit

 

History

History
39 lines (31 loc) · 1.42 KB

INSTALL.md

File metadata and controls

39 lines (31 loc) · 1.42 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 You might need to 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.

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()"