We’re happy to announce official Mac OS X support in HHVM, with version 3.9! If you use Homebrew and want to get started now, the steps to use our official tap are really simple:

1 2 $ brew tap hhvm/hhvm $ brew install hhvm

If you don’t use Homebrew or want to build HHVM yourself, take a look at our wiki page for directions. Building HHVM is a very resource-intensive and slow process – be prepared to devote a few gigabytes of RAM and a couple of hours to letting it compile. (The Homebrew formula doesn’t have a bottle yet, so the same applies to whether you use Homebrew or not.)

Keep in mind that OS X support is still experimental at this point. Most things seem to work – it passes most of our test suite, and is able to run both a simple Drupal 7 and WordPress installation when I briefly tested it. However, it hasn’t been extensively battle-tested! For example, there are a couple of failures in our own test suite when running on OS X. It’s good enough to use for local development work, but I don’t recommend a production deployment on anything but Linux quite yet. Information about supported Linux distributions is available on our wiki.

Let us know how it goes! It’s been a long road getting here, and inevitably some bumps in the road still ahead (for example, I’m pretty sure as of this writing master doesn’t build on OS X and am working on fixing it). But OS X support is very important to us and to our community; we are committed to supporting it long-term. In particular, this means that we will make sure HHVM continues to improve on OS X in the future, so that later releases can be less and less experimental. Note that for the 3.9 LTS specifically, although we will continue to backport security patches into the branch, after the release of 3.10, users of the Homebrew formula will be upgraded to 3.10 and we won’t provide the usual LTS-specific packaging for OS X. We don’t anticipate this being a problem since no one should be using the 3.9 OS X release in production anyways, and you can always manually build out of the 3.9 branch if you really need to.

Finally, I’d be remiss without calling out a few key community contributors, without whose work this port would never have happened. A special thank you to:

Daniel Sloof, who did most of the initial port to OS X.

Jingyi Wei, who contributed many useful OS X fixes, including finally getting the JIT itself working.

All of the contributors to the various unofficial Homebrew HHVM packages, most especially this one; although for various reasons we ended up building our own formula, the unofficial ones were enormously helpful to peek at.

As always, if you run into issues, please file them on GitHub!

Comments