2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-01-30 18:06:48 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2005-02-19 22:16:42 +00:00
|
|
|
<sect1 id="ch-system-zlib" role="wrap">
|
2004-05-03 11:59:46 +01:00
|
|
|
<title>Zlib-&zlib-version;</title>
|
|
|
|
<?dbhtml filename="zlib.html"?>
|
2002-08-04 15:59:31 +01:00
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<indexterm zone="ch-system-zlib"><primary sortas="a-Zlib">Zlib</primary></indexterm>
|
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect2 role="package"><title/>
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>The Zlib package contains compression and un-compression routines used by
|
|
|
|
some programs.</para>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
|
|
|
<seglistitem><seg>0.1 SBU</seg><seg>1.5 MB</seg></seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<segmentedlist>
|
2005-02-24 22:26:46 +00:00
|
|
|
<segtitle>&dependencies;</segtitle>
|
2005-02-19 22:16:42 +00:00
|
|
|
<seglistitem><seg>Binutils, Coreutils, GCC, Glibc, Make, and Sed</seg></seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-16 01:08:42 +01:00
|
|
|
</sect2>
|
2002-08-04 15:59:31 +01:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect2 role="installation">
|
2003-11-01 22:31:50 +00:00
|
|
|
<title>Installation of Zlib</title>
|
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<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>
|
|
|
|
|
2004-02-04 22:22:26 +00:00
|
|
|
<para>Prepare Zlib for compilation:</para>
|
|
|
|
|
2004-12-03 18:29:38 +00:00
|
|
|
<screen><userinput>./configure --prefix=/usr --shared --libdir=/lib</userinput></screen>
|
2004-02-04 22:22:26 +00:00
|
|
|
|
2003-11-01 22:31:50 +00:00
|
|
|
<para>Compile the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<para>To test the results, issue:
|
2004-02-07 10:48:55 +00:00
|
|
|
<userinput>make check</userinput>.</para>
|
2003-11-27 02:32:47 +00:00
|
|
|
|
|
|
|
<para>Install the shared library:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
2005-04-11 20:47:13 +01:00
|
|
|
<para>Next we will remove the old <filename class="extension">.so</filename> files in
|
2005-02-19 22:16:42 +00:00
|
|
|
the <filename class="directory">/lib</filename> directory and relink them
|
2005-04-11 20:47:13 +01:00
|
|
|
into <filename class="directory">/usr/lib</filename>:</para>
|
2004-12-06 18:24:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>rm /lib/libz.so
|
|
|
|
ln -sf ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen>
|
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>Build the static library:</para>
|
2004-06-19 14:39:28 +01:00
|
|
|
|
2003-11-01 22:31:50 +00:00
|
|
|
<screen><userinput>make clean
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make</userinput></screen>
|
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>To test the results again, issue:
|
2004-02-07 10:48:55 +00:00
|
|
|
<userinput>make check</userinput>.</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2003-12-18 00:09:28 +00:00
|
|
|
<para>Install the static library:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<para>Fix the permissions on the static library:</para>
|
2003-12-18 00:09:28 +00:00
|
|
|
|
|
|
|
<screen><userinput>chmod 644 /usr/lib/libz.a</userinput></screen>
|
|
|
|
|
2003-11-01 22:31:50 +00:00
|
|
|
</sect2>
|
2002-08-04 15:59:31 +01:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2004-05-17 22:55:01 +01:00
|
|
|
<sect2 id="contents-zlib" role="content"><title>Contents of Zlib</title>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed libraries</segtitle>
|
|
|
|
<seglistitem><seg>libz[a,so]</seg></seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
2005-02-24 18:32:19 +00:00
|
|
|
<?dbhtml list-presentation="table"?>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
|
|
|
<varlistentry id="libz">
|
|
|
|
<term><filename class="libraryfile">libz</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Contains compression and un-compression
|
|
|
|
functions used by some programs</para>
|
|
|
|
<indexterm zone="ch-system-zlib libz"><primary sortas="c-libz">libz</primary></indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
2005-02-19 22:16:42 +00:00
|
|
|
|