json-c - A JavaScript Object Notation implementation in C ChangeLog

HOWTO


# JSON-C 0.17
# ===========
# Slackware 14.2: json-c 0.12
# Slackware 15.0: json-c 0.15_20200726
#
# Check 'patches' for updates

# Prerequisites:
# CMake >= 2.8, >= 3.16 recommended
# pkgconfig
# doxygen >= 1.8.13

# JSON-C release files
# JSON-C Wiki
# JSON-C API documentation
# JSON-C mailing list

# Get the tarball
cd
test -f installed/json-c-0.17.tar.gz &&
mv -f installed/json-c-0.17.tar.gz .
test ! -f json-c-0.17.tar.gz &&
wget https://s3.amazonaws.com/json-c_releases/releases/json-c-0.17.tar.gz

# Verify tarball w/ sha256sum:
echo "7550914d58fb63b2c3546f3ccfbe11f1c094147bd31a69dcd23714d7956159\
e6  json-c-0.17.tar.gz" | sha256sum -c

# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "json-c-*" -exec rm -r {} \;
tar xzvf ~/json-c-0.17.tar.gz
cd json-c-0.17
test $UID = 0 && chown -R root:root .

# Read through 'lynx ./README.html' or
#  https://github.com/json-c/json-c/blob/master/README.md

# Create a build directory
mkdir build
cd build

# Configure the build for 64-bit
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib64 \
-DBUILD_STATIC_LIBS=OFF ..

# Configure the build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_STATIC_LIBS=OFF ..

# Build it
make

# Test the build
make test

# Become root to install it
su

# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg json-c

# Install it
make install
ldconfig

# Become your non-root user again
exit

# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/json-c-*.tar.gz
mv -f json-c-0.17.tar.gz installed/


# If you ever want to uninstall JSON-C, this should do it:
cd
su
test -d src/json-c-* && ( cd src/json-c-* ; make uninstall )
test -d /usr/include/json-c && rm -r /usr/include/json-c
( cd /usr/lib
  rm -f ./libjson-c.* pkgconfig/json-c.pc
  test -d ./cmake/json-c && rm -r ./cmake/json-c )
test -d /usr/lib64 &&
( cd /usr/lib64
   rm -f ./libjson-c.* pkgconfig/json-c.pc
   test -d ./cmake/json-c && rm -r ./cmake/json-c )
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "json-c-*" -exec rm -r {} \;
rm -f ~/installed/json-c-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2023-10-16 11:30pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]