Apr 14, 2020 To use json-c you can either include json.h, or preferrably, one of the following more specific header files: jsonobject.h - Core types and methods. Jsontokener.h - Methods for parsing and serializing json-c object trees. Jsonpointer.h - JSON Pointer (RFC 6901) implementation for retrieving objects from a json-c object tree. JSON manipulation library - development files. This library allows you to easily construct JSON objects in C, output them as JSON formatted strings and parse JSON formatted strings back into the C representation of JSON objects.
Libjson-c-dev Ubuntu 10
sudo apt-get install -y bind9utils libbind-dev libkrb5-dev libssl-dev libcap-dev libxml2-dev |
curl ftp://ftp.nominum.com/pub/nominum/dnsperf/2.0.0.0/dnsperf-src-2.0.0.0-1.tar.gz -O |
tar xfvz dnsperf-src-2.0.0.0-1.tar.gz |
cd dnsperf-src-2.0.0.0-1 |
./configure |
make |
sudo make install |
commented May 30, 2017
FYI, I've created a snap package for More details here. |
commented Jun 5, 2017
with 2.0.0.0 and 2.1.0.0 the lGeoIP lib is also needed. you may need to add libgeoip-dev to the apt-get install command. Thanks for providing the script. |
commented Jan 30, 2018
Libjson-c-dev Ubuntu Update
Sample query file is available on ftp://ftp.nominum.com/pub/nominum//dnsperf/data/queryfile-example-current.gz . |
commented Mar 27, 2018
Thanks for sharing! Installing dependencies for 2.1.0.0 (tested on Ubuntu 17.10): |