Skip to content

Building and installing HHVM on Ubuntu 13.04

Simon Welsh edited this page Jan 10, 2015 · 37 revisions

NB: 13.04 is not officially supported. Please use either 12.04 or 13.10 if you run into problems.

Packages installation

Using sudo or as root user: (you may have to run sudo apt-get update first)

sudo apt-get install git-core cmake g++ libboost-dev libmysqlclient-dev \
  libxml2-dev libmcrypt-dev libicu-dev openssl build-essential binutils-dev \
  libcap-dev libgd2-xpm-dev zlib1g-dev libtbb-dev libonig-dev libpcre3-dev \
  autoconf libtool libcurl4-openssl-dev libboost-system-dev \
  libboost-program-options-dev libboost-filesystem-dev libboost-thread-dev \
  memcached libreadline-dev libncurses-dev libmemcached-dev libbz2-dev \
  libc-client2007e-dev php5-mcrypt php5-imagick libgoogle-perftools-dev \
  libelf-dev libdwarf-dev libboost-regex-dev libcurl4-openssl-dev \
  libgoogle-glog-dev libjemalloc-dev libunwind8-dev libmagickwand-dev libxslt1-dev \
  ocaml-native-compilers libevent-dev automake gawk

Getting HipHop source-code

mkdir dev
cd dev
export CMAKE_PREFIX_PATH=`pwd`
git clone git://github.com/facebook/hhvm.git --depth=1
cd hhvm
git submodule update --init --recursive
cd ..

Building HipHop

Make sure your machine has more than 1GB RAM

cd hhvm
cmake .
make

Running programs

The hhvm binary can be found in hphp/hhvm/hhvm.

The Hack language

See https://github.com/facebook/hhvm/wiki/Building-the-Hack-Typechecker.

Errors

If any errors occur, it may be required to remove the CMakeCache.txt file in the checkout.

If your failure was on the make command, try to correct the error and run make again, it should restart from the point it stops. If the error persists, try to remove as explained above.

Clone this wiki locally