Installing Hack

Using Hack requires installing HHVM. There are two primary ways to get HHVM installed: directly from a pre-built package (recommended) or compiled from source. Once HHVM is installed, see here for information on how to run the Hack typechecker (included in HHVM) and start your Hack project.

Pre-Built Package Installation (Recommended)

Any version of HHVM 3.0 or newer includes both the Hack typechecker and the necessary runtime support. The Hack documentation has information on where to find prebuilt packages.

Compile From Source

Compile HHVM and Hack from latest master source for a supported distro:

Note: If you are compiling from source, OCaml 3.12 or greater is required on your distro to compile Hack.