-
Notifications
You must be signed in to change notification settings - Fork 12
/
INSTALL
89 lines (66 loc) · 2.41 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Installation Instructions
*************************
This file gives a brief overview of the steps required to build
compactor and inspector. Detailed install instructions are in the user
guide. A PDF version of the guide may be downloaded from
https://github.com/dns-stats/compactor/wiki/user-guide.pdf.
= Installing from packages
Binary install packages for Ubuntu are available
from a Launchpad Personal Package Archive (PPA).
You need first to add the DNS-STATS PPA to your system's Software Sources:
----
sudo add-apt-repository ppa:dns-stats/compactor
sudo apt update
----
You can then install either both of the `dns-stats-compactor` or
`dns-stats-inspector` packages. Their pre-requisite packages will be
downloaded and installed automatically.
----
$ sudo apt install dns-stats-compactor
$ sudo apt install dns-stats-inspector
= Building compactor and inspector from source
The source code is available on Github at
https://github.com/dns-stats/compactor. You can either clone the
compactor repository or download a release tarball.
You will also need the following pre-requisites:
Required tools:
* A C++ compiler and build chain that supports the 2011 ISO standard,
otherwise C++11.
* GNU autoconf, automake, libtool
* protofbuf compiler (https://developers.google.com/protocol-buffers)
Optional tools:
* Asciidoctor v1.5.0 or later (http://asciidoctor.org/).
Required to build the documentation.
Required libraries:
* The following Boost (http://www.boost.org) libraries:
- boost-filesystem
- boost-iostreams
- boost-log
- boost-program-options
- boost-system
- boost-thread
- boost-iostreams
* liblzma (http://tukaani.org/xz/)
* libtins (http://libtins.github.io/)
* openssl (http://www.openssl.org/)
* libctemplate (https://github.com/OlafvdSpek/ctemplate)
* libmaxminddb (https://github.com/maxmind/libmaxminddb)
* protobuf (https://developers.google.com/protocol-buffers)
Optional libraries:
* libtcmalloc (http://goog-perftools.sourceforge.net/doc/tcmalloc.html).
This gives a notable performance boost over the standard glibc malloc.
= Building from a release tarball
$ cd dns-stats-compactor-<version>
$ ./configure
$ make
$ make install
= Building from a git repository
Select the desired branch, for example the
most recent release branch/tag or the latest development code
which is in 'develop'.
$ git checkout <branch or tag>
$ git submodule update --init
$ ./autogen.sh
$ ./configure
$ make
$ make install