This page documents the requirements and special instructions for building Traffic Server on Ubuntu. For more details about the configuration process, plesae refer to the Installation and Configuration page.
Ubuntu 14 -
...
18
Generally you use apt-get to get the dependencies for you:
Code Block |
---|
$ sudo apt-get build-dep trafficserver |
...
Unfortunately hwloc and libunwind are not included in the default dependencies list for 14.04 as of now, you can install them with apt-get:
Code Block |
---|
$ sudo apt-get install libhwloc-dev libhwloc5 libunwind8 libunwind8-dev |
ATS v9.x
Ubuntu 12.x - 13.x
ATS v9.0.0 drops Ubuntu 14.04 support because of minimum openssl version (v1.0.2). If you want, you can build OpenSSL (v1.0.2 or later) from source and use it for ATS 9.
ATS v8.0
For ATS v8.0.0 and later, a compiler with support for C++17 is required. On Ubuntu 14, 16 and 17, you an install this using the test PPAThe following packages must be installed:
Code Block |
---|
$ sudo apt-get install g++ make pkg-config libssl-dev tcl-dev libexpat1-dev libpcre3-dev libmodule-install-perl |
It's also recommended that the following packages are installed, but they are not required (and they come pre-installed on many systems):
Code Block |
---|
sudo apt-get install libcap-dev libcap2 hwloc libhwloc-dev |
To enable WCCP you will need flex and bison. These should be recent enough to work.
software-properties-common python-software-properties
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ apt-get update
# Optional, but this avoids having apt-get upgrade download other things from the test repository
# Note: xenial for Ubuntu 16.x and 17.x, trusty for Ubuntu 14.x
$ cat > /etc/apt/preferences.d/xenial
Package: *
Pin: release a=xenial
Pin-Priority: 50
$ apt-get -t xenial install gcc-7 g++-7 |
If you prefer to use LLVM / clang, you can install this on Ubuntu 16 and 17 with:
Code Block |
---|
$ |
Code Block |
sudo apt-get install bison flexclang-5.0 |
Git
To use Git, you must install the appropriate packages:
Code Block |
---|
$ sudo apt-get install git git-core
|
For more details how to use Git with our source, please see our Git GitHub page.
configure and build
For more details, see the Building page
Code Block |
---|
$ ./configure && make
|