Regarding "yum -y install json-c-devel"

889 views
Skip to first unread message

mahi kumar

unread,
Sep 20, 2022, 3:30:43 AM9/20/22
to json-c
Hi,
we are trying to install json-c as dynamic library to our project. we are using the below command to install the dynamic library.
yum -y install json-c-devel ".

But we observed json-c version is a little older.  Please find the details below.

=======================================================================
 Package              Arch           Version                 Repository    Size
=======================================================================
Installing:
 json-c-devel         x86_64         0.11-4.el7_0            base          20 k
Installing for dependencies:
 json-c               x86_64         0.11-4.el7_0            base          31 k
Transaction Summary

But found the below versions from git repo.
 
Tags
json-c-0.16-20220414 
Toggle commit message
json-c-0.15-20200726 
Toggle commit message
json-c-0.14-20200419 
Toggle commit message

Que 1: How can I get the latest version with "yum -y install json-c-devel" ?
Que 2: Or  0.11-4.el7_0 &  json-c-0.16-20220414  both versions are same ?

Thanks.


Eric Hawicz

unread,
Sep 21, 2022, 9:10:24 PM9/21/22
to json-c
It looks to me like the pre-packaged version of json-c (i.e. 0.11-4.el7_0) on your system is terribly out of date.
Based on the version you mention, I'm guessing you're on CentOS 7?  If so, per their FAQ you're unlikely to get an "officially" built package.
I think your options are either to build and install from source, or upgrade the entire OS (e.g. to CentOS 9 Stream, but even that only has json-c 0.14, which is 2+ years old already).

Eric

On Tuesday, September 20, 2022 at 3:30:43 AM UTC-4 mahi...@gmail.com wrote:
Hi,
we are trying to install json-c as dynamic library to our project. we are using the below command to install the dynamic library.
yum -y install json-c-devel ".
But we observed json-c version is a little older.  Please find the details below.
...
Reply all
Reply to author
Forward
0 new messages