| 1 |
+----------------------------------------------------------------------+ |
| 2 |
| ApacheTop INSTALL Instructions | |
| 3 |
+----------------------------------------------------------------------+ |
| 4 |
|
| 5 |
ApacheTop is now distributed with autoconf files, a nice easy way to build |
| 6 |
distributions whatever platform you're on. |
| 7 |
|
| 8 |
1) Building ApacheTop from a cloned repository |
| 9 |
2) Building ApacheTop from a tarball |
| 10 |
3) custom configure options |
| 11 |
4) If it fails to build |
| 12 |
|
| 13 |
+----------------------------------------------------------------------+ |
| 14 |
| 1. Building ApacheTop from a cloned repository | |
| 15 |
+----------------------------------------------------------------------+ |
| 16 |
|
| 17 |
git clone https://github.com/tessus/apachetop.git |
| 18 |
|
| 19 |
cd apachetop |
| 20 |
./autogen.sh (autotools required) |
| 21 |
./configure (see section 3 for details) |
| 22 |
make |
| 23 |
make install (as root or with sudo) |
| 24 |
|
| 25 |
+----------------------------------------------------------------------+ |
| 26 |
| 2. Building ApacheTop from a tarball | |
| 27 |
+----------------------------------------------------------------------+ |
| 28 |
|
| 29 |
Download the latest tarball from: |
| 30 |
https://github.com/tessus/apachetop/releases/latest |
| 31 |
|
| 32 |
tar -xzf apachetop-X.Y.Z.tar.gz |
| 33 |
|
| 34 |
cd apachetop-X.Y.Z |
| 35 |
./configure (see section 3 for details) |
| 36 |
make |
| 37 |
make install (as root or with sudo) |
| 38 |
|
| 39 |
+----------------------------------------------------------------------+ |
| 40 |
| 3. custom configure options | |
| 41 |
+----------------------------------------------------------------------+ |
| 42 |
|
| 43 |
There's a few custom ./configure options and overrides: |
| 44 |
|
| 45 |
--with-logfile=<log> (added in v0.11) |
| 46 |
You may specify the location of the default logfile |
| 47 |
to open. This overrides the #define in apachetop.h. |
| 48 |
Of course, you can just use -f on the apachetop |
| 49 |
commandline, but if you'll only ever use one log, you |
| 50 |
can give it to configure and never worry about it again. |
| 51 |
|
| 52 |
--with-pcre2=<path> (added in v0.23.2) |
| 53 |
Specifies where to find the pcre2 installation in the |
| 54 |
event it's not in your standard path. configure should look |
| 55 |
for <path>/include/pcre2.h and <path>/lib/libpcre2.* |
| 56 |
|
| 57 |
--with-fam=<path> (added in v0.12) |
| 58 |
Specifies where to find the FAM installation. The path you |
| 59 |
give should contain include/fam.h and lib/libfam.* |
| 60 |
kqueue will be preferred to fam if both are found on the system. |
| 61 |
|
| 62 |
--with-pcre=<path> (added in v0.12) |
| 63 |
Specifies where to find an adns installation. |
| 64 |
|
| 65 |
|
| 66 |
+----------------------------------------------------------------------+ |
| 67 |
| 4. If it fails to build | |
| 68 |
+----------------------------------------------------------------------+ |
| 69 |
|
| 70 |
Make sure you have the -dev sources for readline and (n)curses. These |
| 71 |
contain files required to build binaries that use these libraries; for |
| 72 |
example on Debian you'll need the libreadline4-dev package installed. |