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.
After you have PCRE development libraries installed on your system, you should get the Traffic Server code with git or subversion.
$ svn checkout \ http://svn.apache.org/repos/asf/trafficserver/traffic/trunk \ traffic-trunk.svn # get the latest code from the ASF SVN repository
Run autoreconf to generate the configure script:
$ cd traffic-trunk.svn # enter the new checkout directory $ autoreconf -f -i # generate the configure script
Make yourself a build directory so you can do a VPATH build.
$ mkdir release # directory where build artifacts will reside
From the build 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':
$ cd release # enter the directory where build artifacts will reside $ ../configure --prefix=/opt/ats --with-pcre=/opt/local # generate the Makefile files
Now you can make and install:
$ make $ sudo make install