Monday, May 13, 2024
15
rated 0 times [  15] [ 0]  / answers: 1 / hits: 9595  / 3 Years ago, wed, august 18, 2021, 11:20:55

During configuration of one project, I got the error:



checking for JSON... no
no
configure: error:
You must have JSON-GLib >= 0.14.0 development headers installed to build.

make: *** [config.status] Error 1


The configure script contains such strings:



$ cat configure | grep json-glib
{ { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "json-glib-1.0 >= 0.14.0""; } >&5
($PKG_CONFIG --exists --print-errors "json-glib-1.0 >= 0.14.0") 2>&5
pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json-glib-1.0 >= 0.14.0" 2>/dev/null`
{ { $as_echo "$as_me:${as_lineno-$LINENO}: $PKG_CONFIG --exists --print-errors "json-glib-1.0 >= 0.14.0""; } >&5
($PKG_CONFIG --exists --print-errors "json-glib-1.0 >= 0.14.0") 2>&5
pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json-glib-1.0 >= 0.14.0" 2>/dev/null`
JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-glib-1.0 >= 0.14.0" 2>&1`
JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-glib-1.0 >= 0.14.0" 2>&1`


So I assumed I need package json-glib-1.0 but it seems to be installed:



$ apt-cache policy json-glib-1.0
libjson-glib-1.0-common:
Installed: 0.16.2-1ubuntu1
Candidate: 0.16.2-1ubuntu1
Version table:
*** 0.16.2-1ubuntu1 0
500 http://ru.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
libjson-glib-1.0-0-dbg:
Installed: (none)
Candidate: 0.16.2-1ubuntu1
Version table:
0.16.2-1ubuntu1 0
500 http://ru.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
gir1.0-json-glib-1.0:
Installed: (none)
Candidate: (none)
Version table:
gir1.2-json-glib-1.0:
Installed: (none)
Candidate: (none)
Version table:
libjson-glib-1.0-0:
Installed: 0.16.2-1ubuntu1
Candidate: 0.16.2-1ubuntu1
Version table:
*** 0.16.2-1ubuntu1 0
500 http://ru.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status


Does anyone know which package should I install? In the case it does matter, the source is Pidgin 3.0 development branch. Everything I found in Google is only a message about changing json-glib to 0.14 version.



As raaz suggested below, I downloaded, converted and installed RPM via alien. But the configure script produces the same error, even with the newest version of package.



$ dpkg -L json-glib-devel | grep include
/usr/include
/usr/include/json-glib-1.0
/usr/include/json-glib-1.0/json-glib
/usr/include/json-glib-1.0/json-glib/json-gvariant.h
/usr/include/json-glib-1.0/json-glib/json-builder.h
/usr/include/json-glib-1.0/json-glib/json-gobject.h
/usr/include/json-glib-1.0/json-glib/json-version.h
/usr/include/json-glib-1.0/json-glib/json-parser.h
/usr/include/json-glib-1.0/json-glib/json-reader.h
/usr/include/json-glib-1.0/json-glib/json-path.h
/usr/include/json-glib-1.0/json-glib/json-enum-types.h
/usr/include/json-glib-1.0/json-glib/json-glib.h
/usr/include/json-glib-1.0/json-glib/json-generator.h
/usr/include/json-glib-1.0/json-glib/json-types.h

More From » application-development

 Answers
7

The development files for json-glib can be installed through the normal software repositories, there's no need to get them from a different distro and converting packages!



sudo apt-get install libjson-glib-dev


When compiling an application and the configure script complains about missing dependencies, you'll need the development files (in 99% of the cases). In Ubuntu these are marked by a -dev at the end of the package name.


[#25210] Thursday, August 19, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nerta

Total Points: 414
Total Questions: 103
Total Answers: 97

Location: England
Member since Wed, Apr 19, 2023
1 Year ago
nerta questions
Thu, May 12, 22, 16:04, 2 Years ago
Thu, Dec 2, 21, 09:19, 3 Years ago
Thu, May 27, 21, 00:41, 3 Years ago
Sun, Dec 11, 22, 08:33, 1 Year ago
;