In order to build Traffic Server, a few requirements must be met:
- GCC or a compatible compiler (LLVM/Clang and Intel ICC should work)
- For ATS v8.0.0 and later, a compiler with support for C++17 is required.
- For ATS v7.0.0, gcc-4.8.1 or later is required, for full C++11 support.
- PCRE (version 3) with the development include files
- For ATS v9.0.0 and later, v1.0.2 or later is required
- For ATS v8.0.0, old versions like v1.0.1 are supported
- TCL with the development include files
- Expat with the development include files
- Perl and ExtUtils::MakeMaker
- The hwloc library (not required, but recommended)
- Posix capabilities (not required, but recommended)
- unwind library (not required, but needed to provide better crash logs)
- libcurl and curses/ncurses is required for the traffic_top tool. This includes the devel package of both.
Typically, this means you have to include the appropriate "dev" package. Unfortunately, naming here may vary between different distros and platforms. Development packages are usually named -dev or -devel or some such. For more details, see the instructions for the various distributions and platforms below.
When building from the Git repository, you may need to have the following tools available or installed:
Use the following command to build Traffic Server with Clang: