2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-03-21 18:42:58 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2006-02-10 19:05:30 +00:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<sect1 id="ch-system-zlib" role="wrap">
|
2006-02-10 19:05:30 +00:00
|
|
|
<?dbhtml filename="zlib.html"?>
|
|
|
|
|
2007-09-07 20:16:43 +01:00
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>zlib</productname>
|
|
|
|
<productnumber>&zlib-version;</productnumber>
|
|
|
|
<address>&zlib-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<title>Zlib-&zlib-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-zlib">
|
|
|
|
<primary sortas="a-Zlib">Zlib</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title/>
|
2002-08-04 15:59:31 +01:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<para>The Zlib package contains compression and decompression routines used by
|
|
|
|
some programs.</para>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<seglistitem>
|
2006-05-14 21:16:56 +01:00
|
|
|
<seg>&zlib-ch6-sbu;</seg>
|
|
|
|
<seg>&zlib-ch6-du;</seg>
|
2006-02-10 19:05:30 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
</sect2>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Zlib</title>
|
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>Zlib is known to build its shared library incorrectly if
|
|
|
|
<envar>CFLAGS</envar> is specified in the environment. If using
|
|
|
|
a specified <envar>CFLAGS</envar> variable, be sure to add the
|
|
|
|
<parameter>-fPIC</parameter> directive to the <envar>CFLAGS</envar>
|
|
|
|
variable for the duration of the configure command below, then
|
|
|
|
remove it afterwards.</para>
|
|
|
|
</note>
|
|
|
|
|
|
|
|
<para>Prepare Zlib for compilation:</para>
|
2004-02-04 22:22:26 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="configure">./configure --prefix=/usr --shared --libdir=/lib</userinput></screen>
|
2004-02-04 22:22:26 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<para>Compile the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<para>To test the results, issue:</para>
|
|
|
|
|
|
|
|
<screen><userinput remap="test">make check</userinput></screen>
|
2003-11-27 02:32:47 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<para>Install the shared library:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<para>The previous command installed a <filename
|
|
|
|
class="extension">.so</filename> file in <filename
|
|
|
|
class="directory">/lib</filename>. We will remove it and relink it into
|
|
|
|
<filename class="directory">/usr/lib</filename>:</para>
|
2004-12-06 18:24:50 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="install">rm -v /lib/libz.so
|
2005-09-29 21:55:40 +01:00
|
|
|
ln -sfv ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen>
|
2004-12-06 18:24:50 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<para>Build the static library:</para>
|
2004-06-19 14:39:28 +01:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="make">make clean
|
2003-11-01 22:31:50 +00:00
|
|
|
./configure --prefix=/usr
|
|
|
|
make</userinput></screen>
|
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<para>To test the results again, issue:</para>
|
|
|
|
|
|
|
|
<screen><userinput remap="test">make check</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<para>Install the static library:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<para>Fix the permissions on the static library:</para>
|
2003-12-18 00:09:28 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="install">chmod -v 644 /usr/lib/libz.a</userinput></screen>
|
2003-12-18 00:09:28 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
</sect2>
|
2002-08-04 15:59:31 +01:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<sect2 id="contents-zlib" role="content">
|
|
|
|
<title>Contents of Zlib</title>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed libraries</segtitle>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<seglistitem>
|
2006-04-14 10:37:17 +01:00
|
|
|
<seg>libz.{a,so}</seg>
|
2006-02-10 19:05:30 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
<varlistentry id="libz">
|
|
|
|
<term><filename class="libraryfile">libz</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Contains compression and decompression functions used by
|
|
|
|
some programs</para>
|
|
|
|
<indexterm zone="ch-system-zlib libz">
|
|
|
|
<primary sortas="c-libz">libz</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
</variablelist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
</sect2>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-10 19:05:30 +00:00
|
|
|
</sect1>
|