I'm new to c and Linux so I would like some clarification about: (1) why software installs the way it does and (2) what I need to do to use the software.
I'm modifying an existing c program and I wanted to add json processing to it. Since I'm running openSUSE, I installed json-glib from their web site, did a search on json-glib, and used the one-click install to installl json-glib-devel. Documentation says to include the following in the c program:
But that gives a compile error that says it can't be found... which makes sense because it's in json-glib-1.0/json-glib/json-glib.h. Ok, so I change it to:
Then I get an error that other header files don't exist because the includes in json-glib.h are:
Which is again going to the /usr/include/json-glib directory that doesn't exist. So I'm wondering if I'm supposed to set up some kind of an alias and if so, also wondering why that isn't taken care of by some part of the install program.
Anyway, if someone could shed a little light on this and tell me what's going on and what I need to do to fix it, I would really appreciate it. Part of this is getting json installed and working but another part is just a clarification of how this sort of thing is done on Linux.