ritwik12 / Virtual-Assistant

A linux based Virtual assistant on Artificial Intelligence in C
GNU General Public License v3.0
128 stars 95 forks source link

libjson0 deprecated or dependency issue with Ubuntu 17.10 (Artful Aardvark) #33

Closed ellisken closed 6 years ago

ellisken commented 6 years ago

Attempting to install the transitional packages libjson0/libjson0-dev $ sudo apt-get install libjson0 libjson0-dev during setup on Ubuntu 17.10 results in the following issue: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libjson0 E: Unable to locate package libjson0-dev

Replacing libjson0-dev with libjson-c-dev (see https://packages.debian.org/source/jessie/json-c) in the following manner seems to have solved this problem for me while installing Virtual-Assistant: sudo apt-get install libjson-c-dev

Please note that this also requires updating the compile statement to: `gcc main.c $(pkg-config --libs --cflags libcurl) -l json-c -std=gnu11'

And in main.c, #include <json/json.h> must be replaced with: #include <json-c/json_object.h> #include <json-c/json_tokener.h>

I would be happy to commit the patch if the developers consider it useful.

ritwik12 commented 6 years ago

@ellisken Thanks for your contribution, sorry for the delay. It usually never happens. This time I was really busy.