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">
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>
17 <title>Zlib-&zlib-version;</title>
19 <indexterm zone="ch-system-zlib">
20 <primary sortas="a-Zlib">Zlib</primary>
23 <sect2 role="package">
26 <para>The Zlib package contains compression and decompression routines used by
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
34 <seg>&zlib-ch6-sbu;</seg>
35 <seg>&zlib-ch6-du;</seg>
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>
70 <sect2 id="contents-zlib" role="content">
71 <title>Contents of Zlib</title>
74 <segtitle>Installed libraries</segtitle>
77 <seg>libz.{a,so}</seg>
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>
89 <para>Contains compression and decompression functions used by
91 <indexterm zone="ch-system-zlib libz">
92 <primary sortas="c-libz">libz</primary>