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:
- Ubuntu 12.04
- Ubuntu 13.04
- Ubuntu 13.10
- Debian 7
- Debian 6
- Fedora 19
- Mint 15
- CentOS 6.3
- CentOS 6.x
Note: If you are compiling from source, OCaml 3.12 or greater is required on your distro to compile Hack.