Skip to content

Building and installing HHVM on FreeBSD from ports

ruo91 edited this page Dec 18, 2013 · 4 revisions

This walkthrough was tested with 64-bit FreeBSD 9.2, but generally any recent 64-bit FreeBSD should do.

Download and install the FreeBSD ports tree

If you don't have the ports tree yet, download and extract it using portsnap:

portsnap fetch
portsnap extract

If you already have a ports tree, you may want to update it:

portsnap fetch update

Portmaster install

Install the portmaster tool (if not installed)

cd /usr/ports/ports-mgmt/portmaster
make install clean

Install using portmaster

portmaster lang/hiphop-php

Alternative: traditional install from port

cd /usr/ports/lang/hiphop-php
make install

Clean-up working source after install (if desired)

make clean

Clean-up tarball fetched (usually stored in ${PORTSDIR}/distfiles folder)

make distclean
Clone this wiki locally