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

Compare with Current View Page History

« Previous Version 18 Next »

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, libtool, and automake. 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. You will need to install the latest version of Xcode.

Building Traffic Server with Homebrew

First, visit http://brew.sh to install the Homebrew package manager.

Next, install the build dependencies:

$ brew install automake autoconf libtool pcre openssl
$ brew link --force openssl

On certain versions of macOS / OS X and Xcode, you will also have to install libxml2:

$ brew install libxml2
$ brew link --force libxml2

After you have PCRE development libraries installed on your system, you should get the Traffic Server code with git.

$ git clone https://github.com/apache/trafficserver.git

Run autoreconf to generate the configure script:

$ cd trafficserver  # enter the new checkout directory
$ autoreconf -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'. No additional options are needed when building against Homebrew.

$ ./configure

Now you can make and install:

$ make
$ sudo make install
  • Mac Ports - package retrieval and installation system.
  • Homebrew - package retrieval and installation system.
  • Xcode - if you want to use the latest version of GCC from Apple. Requires free registration to get to the download page.
  • PCRE - required software for building Traffic Server from the source.
  • No labels