INSTALL 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. SYSTEM REQUIREMENTS
  2. ZMap is designed to run on GNU/Linux systems and can be built with
  3. most recent versions of gcc. Currently, ZMap only supports 64-bit
  4. systems. Running it requires at least 600 MB of free memory.
  5. INSTALLING ZMAP
  6. If you want to install it directly on Fedora 19+, just type
  7. yum install zmap
  8. If you want to install it on Archlinux, please visit AUR link:
  9. https://aur.archlinux.org/packages/zmap/
  10. BUILDING ZMAP
  11. ZMap requires GMP, a free library for arbitrary precision arithmetic,
  12. gengetopt, and libpcap. ZMap also uses flex and byacc to generate the code for
  13. the output filter lexer and parser. On Mac, ZMap uses libdnet for gateway and
  14. route detection. These packages can be installed on Debian-based systems by
  15. running:
  16. sudo apt-get install build-essential cmake libgmp3-dev gengetopt libpcap-dev flex byacc libjson-c-dev pkg-config
  17. or on RHEL- and Fedora-based systems by running:
  18. sudo yum install gmp gmp-devel gengetopt libpcap-devel flex byacc
  19. or on Mac OS systems (brew):
  20. brew install cmake gmp gengetopt json-c byacc libdnet
  21. Once these prerequisites have been installed, ZMap can be installed
  22. by running:
  23. cmake [-DWITH_REDIS=ON] [-DWITH_JSON=ON] [-DENABLE_DEVELOPMENT=ON] ./
  24. make
  25. followed by:
  26. sudo make install
  27. Enabling development turns on debug symbols, and turns off optimizations.
  28. Release builds should but built with -DENABLE_DEVELOPMENT=OFF.
  29. Redis support is not enabled by default. If you are want to use ZMap
  30. with Redis, you will first need to install Hiredis. Then run cmake with
  31. "-DWITH_REDIS=ON".
  32. On some platforms, json-c must be installed from source.
  33. This requires git and autotools to be available.
  34. For more information on how to install json-c, please see
  35. http://github.com/json-c/json-c.