Where to install json-c

I'm working on a project, that requires the library "json-c". Now I want to install this lib according to the official site (), 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 :)

0

1 Answer

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

sudo apt install libjson-c-dev

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like