c - How to install cjson properly in Ubuntu 14.0LTS? -


i new in json , don't know how use found compare xml json better so, learning json in c programming in ubuntu 14.0lts.

i followed https://linuxprograms.wordpress.com/2010/05/20/install-json-c-in-linux/. in link, installed libjson0 of first command when installed libjson – debug symbols package of second command mentioned in link showing "e: unable locate package libjson0-dbg".

also gone through https://github.com/json-c/json-c. after cloning moved json-c directory, in json-c directory did sh autogen.sh showing "autogen.sh: 2: autogen.sh: autoreconf: not found".

why autoreconf not works ? when installed cpputest , other stuffs works.

i install build-essential found in google above problems can't works me.

how can installed cjson in proper manner , how use c-programms.

try below commands:

$ sudo apt-get install libjson-glib-1.0-0 libjson-glib-1.0-0-dev

if want debug programs , see various steps of serializing/deserializing can install libjson-glib – debug symbols package

$ sudo apt-get install libjson-glib-1.0-0-dbg

for documentation related json-glib, must install following package

$ sudo apt-get install libjson-glib-1.0-0-doc

this documentation available in file:///usr/share/gtk-doc/html/json-glib/index.html


Comments