You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This page documents the requirements and special instructions for building Traffic Server on Mac OS X platforms. Please let us know if you had to install additional packages on your installations.

Leopard (Version 10.5)

To build Traffic Server, you will need gcc 4.2+, pcre, and either sqlite3 or berkeley db. Your Mac OS X system may not have all of the required software installed so you will have to get it yourself from the source or elsewhere like macports.

After you have the required software, 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

Run autoreconf to generate the configure script:

$ cd traffic-trunk.svn
$ autoreconf -f -i

Make yourself a build directory so you can do a VPATH build.

$ mkdir release

From the build directory, run configure to generate the Makefile files. You will likely need to override the C and C++ compiler to use since they may be a non-standard filename:

$ cd release
$ ../configure --prefix=/opt/ats \
               --with-sqlite3=/path/to/sqlite3 \
               --with-pcre=/path/to/pcre \
               CC=/usr/bin/gcc-4.2 \
               CXX=/usr/bin/g++-4.2
  • No labels