mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 23:32:12 +08:00
2c384c05c8
Akonadi: Stats Update Enchant-1.6.0: Fix testing typo GCC5 Tags git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16241 af4574ff-66df-0310-9fd7-8a98e5e911e0
176 lines
4.8 KiB
XML
176 lines
4.8 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY json-c-download-http "https://s3.amazonaws.com/json-c_releases/releases/json-c-&json-c-version;.tar.gz">
|
|
<!ENTITY json-c-download-ftp " ">
|
|
<!ENTITY json-c-md5sum "3ca4bbb881dfc4017e8021b5e0a8c491">
|
|
<!ENTITY json-c-size "496 KB">
|
|
<!ENTITY json-c-buildsize "6.7 MB">
|
|
<!ENTITY json-c-time "less than 0.1 SBU (add 1.0 SBU for tests)">
|
|
]>
|
|
|
|
<sect1 id="json-c" xreflabel="JSON-C-&json-c-version;">
|
|
<?dbhtml filename="json-c.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>JSON-C-&json-c-version;</title>
|
|
|
|
<indexterm zone="json-c">
|
|
<primary sortas="a-JSON-C">JSON-C</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to JSON-C</title>
|
|
|
|
<para>
|
|
The <application>JSON-C</application> implements a reference counting
|
|
object model that allows you to easily construct JSON objects in C,
|
|
output them as JSON formatted strings and parse JSON formatted strings
|
|
back into the C representation of JSON objects.
|
|
</para>
|
|
|
|
&lfs77_checked; &gcc5_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&json-c-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&json-c-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: &json-c-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: &json-c-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: &json-c-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: &json-c-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<para condition="html" role="usernotes">
|
|
User Notes: <ulink url="&blfs-wiki;/json-c"/>
|
|
</para>
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of JSON-C</title>
|
|
|
|
<note>
|
|
<para>
|
|
This package does not support parallel build.
|
|
</para>
|
|
</note>
|
|
|
|
<para>
|
|
Install <application>JSON-C</application> by running the following
|
|
commands:
|
|
</para>
|
|
|
|
<screen><userinput>sed -i s/-Werror// Makefile.in &&
|
|
./configure --prefix=/usr --disable-static &&
|
|
make -j1</userinput></screen>
|
|
|
|
<para>
|
|
To test the results, issue: <command>make check</command>.
|
|
</para>
|
|
|
|
<para>
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para><userinput>sed ...</userinput>: This instruction removes a flag
|
|
that prevents one file from compiling.</para>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
href="../../xincludes/static-libraries.xml"/>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>
|
|
None
|
|
</seg>
|
|
<seg>
|
|
libjson-c.so and libjson.so
|
|
</seg>
|
|
<seg>
|
|
/usr/include/json and
|
|
/usr/include/json-c
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="libjson">
|
|
<term><filename class="libraryfile">libjson.so</filename></term>
|
|
<listitem>
|
|
<para>
|
|
contains the <application>JSON-C</application> API functions.
|
|
</para>
|
|
<indexterm zone="json-c libjson">
|
|
<primary sortas="c-libjson">libjson.so</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libjson-c">
|
|
<term><filename class="libraryfile">libjson-c.so</filename></term>
|
|
<listitem>
|
|
<para>
|
|
contains the <application>JSON-C</application> API functions.
|
|
</para>
|
|
<indexterm zone="json-c libjson-c">
|
|
<primary sortas="c-libjson-c">libjson-c.so</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|