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.
To build Traffic Server, you will need to retrieve yourself a copy of PCRE. You can get it yourself from the source or elsewhere like macports or Homebrew.
Traffic Server only builds with clang on Mac OS X. We do not support building with gcc on this platform.
After you have PCRE development libraries installed on your system, you should get the Traffic Server code with git.
$ git clone https://git-wip-us.apache.org/repos/asf/trafficserver.git
Run autoreconf to generate the configure script:
$ cd traffic-trunk.svn # enter the new checkout directory $ autoreconf -f -i # 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':
$ ./configure --with-pcre=/opt/local CC=clang CXX=clang++
Now you can make and install:
$ make $ sudo make install
Home Brew prerequisites
As part of getting Brew running, you have already installed XCode. If not, go back and do so, and read the instructions to get running with Brew. Once you have it all setup, if you are building from an official Traffic Server release, all you need to install is the PCRE package:
$ brew install pcre
If however you are installing from the git source code repository, in addition to PCRE you must also install the Gnu Auto-tools:
$ brew install autoconfig automake libtool