Child pages
  • Ubuntu
Skip to end of metadata
Go to start of metadata

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:
 

 $ sudo apt-get build-dep trafficserver

The packages you will get for apt-get build-dep are:

autoconf automake autotools-dev bison debhelper dh-apparmor flex gettext intltool-debian libbison-dev libcap-dev
libexpat1-dev libfl-dev libpcre3-dev libpcrecpp0 libsigsegv2 libsqlite3-dev libssl-dev libtool m4 po-debconf
tcl-dev tcl8.6-dev zlib1g-dev

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:

 $ sudo apt-get install libhwloc-dev libhwloc5 libunwind8 libunwind8-dev

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

$ sudo apt-get install 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:

$ sudo apt-get install clang-5.0

Git

To use Git, you must install the appropriate packages:

 $ sudo apt-get install git git-core

For more details how to use Git with our source, please see our Git page.

configure and build

For more details, see the Building page

 $ ./configure && make

1 Comment

  1. Anonymous

    Missing ldconfig in make install

    You must perform manual.

    Otherwise it can not find the shared libraries.

    Ubuntu 12.04