This page documents the requirements and special instructions for building Traffic Server on Mac OS X. Currently, minimum version required to build a proper Traffic Server binary is Snow Leopard (Version 10.6.x). Please let us know if you had to install additional packages on your installations.
Traffic Server only builds with clang on Mac OS X. We do not support building with gcc on this platform. You will need to install the latest version of Xcode.
Building Traffic Server with Homebrew
Next, install the build dependencies:
On certain versions of macOS / OS X and Xcode, you will also have to install libxml2:
After you have PCRE development libraries installed on your system, you should get the Traffic Server code with git.
Run autoreconf to generate the configure script:
From the checkout directory, run `configure` to generate the Makefile files. You may need to specify the base path where the development files (headers and libraries) for PCRE are installed, e.g. if you installed pcre with MacPorts, you will need to specify the directory '/opt/local'. When building against Homebrew, specify the openssl library with --with-openssl=/usr/local/opt/openssl
Now you can make and install: