Install Libjson-c-dev Ubuntu
Sep 09, 2019 $ sudo make install This will install the libraries to a location determined at configure time. See the output of./configure -help for the available options. Typically you won't need to do much more than provide an alternative -prefix option at configure time, and maybe DESTDIR at install time if you're packaging for a distro. Post-install udev. Ubuntu Developers (Mail Archive) Please consider filing a bug or asking a question via Launchpad before contacting the maintainer directly. Original Maintainers (usually from Debian). Sudo apt-get purge -auto-remove libjson-c-dev More information about apt-get remove Advanced Package Tool, or APT, is a free software user interface that works with core libraries to handle the installation and removal of software on Debian, Ubuntu and other Linux distributions.
Installing via Package Manager
ZMap operates on GNU/Linux, macOS, and BSD. The latest stable version (v2.1.1)can be installed using most OS package managers:
OS | |
---|---|
Fedora 19+ or EPEL 6+ | sudo yum install zmap |
Debian 8+ or Ubuntu 14.04+ | sudo apt install zmap |
Gentoo | sudo emerge zmap |
macOS (using Homebrew) | brew install zmap |
Arch Linux | sudo pacman -S zmap |
Building from Source
Installing ZMap Dependencies
ZMap has the following dependencies:
- CMake - Cross-platform, open-source build system
- GMP - Free library for arbitrary precision arithmetic
- gengetopt - Command line option parsing for C programs
- libpcap - Famous user-level packet capture library
- flex and byacc - Output filter lexer and parser generator
- json-c - JSON implementation in C
- libunistring - Unicode string library for C
- libdnet - (macOS Only) Gateway and route detection
In addition, the following optional packages enable optional ZMap functionality:
- hiredis - RedisDB support in C
Install the required dependencies with the following commands.
On Debian-based systems (including Ubuntu):
On RHEL- and Fedora-based systems (including CentOS):
On macOS systems (using Homebrew):
Building and Installing ZMap
Once these prerequisites are installed, ZMap can be compiled by running:
and then installed via sudo make install
.
Development Notes
Enabling development turns on debug symbols, and turns off optimizations.Release builds should be built with
-DENABLE_DEVELOPMENT=OFF
.Enabling
log_trace
can have a major performance impact and should not be usedexcept during early development. Release builds should be built with-DENABLE_LOG_TRACE=OFF
.Redis support is not enabled by default. If you want to use ZMap with Redis,you will first need to install hiredis. Then run cmake with
-DWITH_REDIS=ON
.Debian/Ubuntu has packaged hiredis aslibhiredis-dev
; Fedora and RHEL/CentOShave packaged it ashiredis-devel
.Building packages for some systems like Fedora and RHEL requires a user-definabledirectory (buildroot) to put files. The way to respect this prefix is to run cmakewith
-DRESPECT_INSTALL_PREFIX_CONFIG=ON
.Manpages (and their HTML representations) are generated from the
.ronn
sourcefiles in the repository, using the ronn tool.This does not happen automatically as part of the build process; to regenerate theman pages you'll need to runmake manpages
. This target assumes thatronn
isin your PATH.Building with some versions of CMake may fail with
unable to find parser.h
.If this happens, try updating CMake. If it still fails, don't clone ZMap into apath that contains the string.com
, and try again.ZMap may be installed to an alternative directory, with the
CMAKE_INSTALL_PREFIX
option. For example, to install it in$HOME/opt
run
This document describes installation from source. If you want to build adeb
, see :ref:`packaging-debian`.
Installing Dependencies
Protobuf
ZeroMQ
Building & Installing FRR
Add FRR user and groups
Compile
Install FRR configuration files
Tweak sysctls
Some sysctls need to be changed in order to enable IPv4/IPv6 forwarding andMPLS (if supported by your platform). If your platform does not support MPLS,skip the MPLS related configuration in this section.
Edit :file:`/etc/sysctl.conf` and uncomment the following values (ignore theother settings):
Reboot or use sysctl -p
to apply the same config to the running system.
Install Libjson-c-dev Ubuntu Pc
Add MPLS kernel modules
Ubuntu 18.04 ships with kernel 4.15. MPLS modules are present by default. Toenable, add the following lines to :file:`/etc/modules-load.d/modules.conf`:
And load the kernel modules on the running system:
In such cases, no one wants to visit a repair shop because it will be a waste of time as well as money.3utools helps you unlock iPhone passcode in just 3 quick steps with a simple software for all iOS users. Iphone 8 3utools download. It is normal for iPhone users to face the situations of lost password and locked screen due to typing wrong password too many times.
If the above command returns an error, you may need to install the appropriateor latest linux-modules-extra-<kernel-version>-generic package. For exampleapt-get install linux-modules-extra-`uname -r`-generic
Enable MPLS Forwarding
Edit :file:`/etc/sysctl.conf` and the following lines. Make sure to add a lineequal to :file:`net.mpls.conf.eth0.input` for each interface used with MPLS.
Install service files
Enable daemons
Open :file:`/etc/frr/daemons` with your text editor of choice. Look for thesection with watchfrr_enable=..
and zebra=..
etc. Enable the daemonsas required by changing the value to yes
.