Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Code Block
langnone

$ git clone https://git-wip-us.apache.org/repos/asf/trafficserver.git

Run autoreconf to generate the configure script:

Code Block
langnone

$ 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':

Code Block
langnone

$ ./configure --with-pcre=/opt/local CC=clang CXX=clang++

Now you can make and install:

Code Block
langnone

$ make
$ sudo make install

...

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:

Code Block
langnone

$ 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:

Code Block
langnone

$ brew install autoconfigautoconf automake libtool
  • 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.