File: INSTALL

package info (click to toggle)
apachetop 0.19.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 324 kB
  • sloc: cpp: 3,005; makefile: 25; sh: 1
file content (72 lines) | stat: -rw-r--r-- 3,030 bytes parent folder | download | duplicates (2)
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
+----------------------------------------------------------------------+
|                  ApacheTop INSTALL Instructions                      |
+----------------------------------------------------------------------+

ApacheTop is now distributed with autoconf files, a nice easy way to build
distributions whatever platform you're on.

1) Building ApacheTop from a cloned repository
2) Building ApacheTop from a tarball
3) custom configure options
4) If it fails to build

+----------------------------------------------------------------------+
| 1. Building ApacheTop from a cloned repository                       |
+----------------------------------------------------------------------+

git clone https://github.com/tessus/apachetop.git

cd apachetop
./autogen.sh                                        (autotools required)
./configure                                  (see section 3 for details)
make
make install                                      (as root or with sudo)

+----------------------------------------------------------------------+
| 2. Building ApacheTop from a tarball                                 |
+----------------------------------------------------------------------+

Download the latest tarball from:
https://github.com/tessus/apachetop/releases/latest

tar -xzf apachetop-X.Y.Z.tar.gz

cd apachetop-X.Y.Z
./configure                                  (see section 3 for details)
make
make install                                      (as root or with sudo)

+----------------------------------------------------------------------+
| 3. custom configure options                                          |
+----------------------------------------------------------------------+

There's a few custom ./configure options and overrides:

	--with-logfile=<log>	(added in v0.11)
		You may specify the location of the default logfile
		to open. This overrides the #define in apachetop.h.
		Of course, you can just use -f on the apachetop
		commandline, but if you'll only ever use one log, you
		can give it to configure and never worry about it again.

	--with-pcre=<path>	(added in v0.11)
		Specifies where to find the pcre installation in the
		event it's not in your standard path. configure should look
		for <path>/include/pcre.h and <path>/lib/libpcre.*

	--with-fam=<path>	(added in v0.12)
		Specifies where to find the FAM installation. The path you
		give should contain include/fam.h and lib/libfam.*
		kqueue will be preferred to fam if both are found on the system.

	--with-pcre=<path>	(added in v0.12)
		Specifies where to find an adns installation.


+----------------------------------------------------------------------+
| 4. If it fails to build                                              |
+----------------------------------------------------------------------+

Make sure you have the -dev sources for readline and (n)curses. These
contain files required to build binaries that use these libraries; for
example on Debian you'll need the libreadline4-dev package installed.