I'm working on a project, that requires the library "json-c". Now I want to install this lib according to the official site (https://github.com/json-c/json-c#buildunix), but, this may sound stupid, where should I install it / clone and build it ? Should I install the lib in the working directory of the project or can i install it anywhere ? I ask this question, because I'm new to Ubuntu and used to install libs via apt-get.

(The used Ubuntu Version is 20.4, running in a virtual box) I'm sorry :)


I suggest installing libjson-c-dev package instead of building it from source.

sudo apt install libjson-c-dev

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.