forked from zmap/zmap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
55 lines (35 loc) · 1.72 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
SYSTEM REQUIREMENTS
ZMap is designed to run on GNU/Linux systems and can be built with
most recent versions of gcc. Currently, ZMap only supports 64-bit
systems. Running it requires at least 600 MB of free memory.
INSTALLING ZMAP
If you want to install it directly on Fedora 19+, just type
yum install zmap
If you want to install it on Archlinux, please visit AUR link:
https://aur.archlinux.org/packages/zmap/
BUILDING ZMAP
ZMap requires GMP, a free library for arbitrary precision arithmetic,
gengetopt, and libpcap. ZMap also uses flex and byacc to generate the code for
the output filter lexer and parser. On Mac, ZMap uses libdnet for gateway and
route detection. These packages can be installed on Debian-based systems by
running:
sudo apt-get install build-essential cmake libgmp3-dev gengetopt libpcap-dev flex byacc libjson-c-dev pkg-config
or on RHEL- and Fedora-based systems by running:
sudo yum install gmp gmp-devel gengetopt libpcap-devel flex byacc
or on Mac OS systems (brew):
brew install cmake gmp gengetopt json-c byacc libdnet
Once these prerequisites have been installed, ZMap can be installed
by running:
cmake [-DWITH_REDIS=ON] [-DWITH_JSON=ON] [-DENABLE_DEVELOPMENT=ON] ./
make
followed by:
sudo make install
Enabling development turns on debug symbols, and turns off optimizations.
Release builds should but built with -DENABLE_DEVELOPMENT=OFF.
Redis support is not enabled by default. If you are want to use ZMap
with Redis, you will first need to install Hiredis. Then run cmake with
"-DWITH_REDIS=ON".
On some platforms, json-c must be installed from source.
This requires git and autotools to be available.
For more information on how to install json-c, please see
http://github.com/json-c/json-c.