Tag LFS-7.9-systemd-rc2
[linux_from_scratch.git] / chapter06 / zlib.xml
blob2dcc49413579f0152fbde9aabdf2e2e2db4eaec3
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4   <!ENTITY % general-entities SYSTEM "../general.ent">
5   %general-entities;
6 ]>
8 <sect1 id="ch-system-zlib" role="wrap">
9   <?dbhtml filename="zlib.html"?>
11   <sect1info condition="script">
12     <productname>zlib</productname>
13     <productnumber>&zlib-version;</productnumber>
14     <address>&zlib-url;</address>
15   </sect1info>
17   <title>Zlib-&zlib-version;</title>
19   <indexterm zone="ch-system-zlib">
20     <primary sortas="a-Zlib">Zlib</primary>
21   </indexterm>
23   <sect2 role="package">
24     <title/>
26     <para>The Zlib package contains compression and decompression routines used by
27     some programs.</para>
29     <segmentedlist>
30       <segtitle>&buildtime;</segtitle>
31       <segtitle>&diskspace;</segtitle>
33       <seglistitem>
34         <seg>&zlib-ch6-sbu;</seg>
35         <seg>&zlib-ch6-du;</seg>
36       </seglistitem>
37     </segmentedlist>
39   </sect2>
41   <sect2 role="installation">
42     <title>Installation of Zlib</title>
44     <para>Prepare Zlib for compilation:</para>
46 <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
48     <para>Compile the package:</para>
50 <screen><userinput remap="make">make</userinput></screen>
52     <para>To test the results, issue:</para>
54 <screen><userinput remap="test">make check</userinput></screen>
56     <para>Install the package:</para>
58 <screen><userinput remap="install">make install</userinput></screen>
60     <para>The shared library needs to be moved to
61     <filename class="directory">/lib</filename>, and as a result the
62     <filename class="extension">.so</filename> file in
63     <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
65 <screen><userinput remap="install">mv -v /usr/lib/libz.so.* /lib
66 ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so</userinput></screen>
68   </sect2>
70   <sect2 id="contents-zlib" role="content">
71     <title>Contents of Zlib</title>
73     <segmentedlist>
74       <segtitle>Installed libraries</segtitle>
76       <seglistitem>
77         <seg>libz.{a,so}</seg>
78       </seglistitem>
79     </segmentedlist>
81     <variablelist>
82       <bridgehead renderas="sect3">Short Descriptions</bridgehead>
83       <?dbfo list-presentation="list"?>
84       <?dbhtml list-presentation="table"?>
86       <varlistentry id="libz">
87         <term><filename class="libraryfile">libz</filename></term>
88         <listitem>
89           <para>Contains compression and decompression functions used by
90           some programs</para>
91           <indexterm zone="ch-system-zlib libz">
92             <primary sortas="c-libz">libz</primary>
93           </indexterm>
94         </listitem>
95       </varlistentry>
97     </variablelist>
99   </sect2>
101 </sect1>