[1fa2099] | 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 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-zlib" role="wrap">
|
---|
| 9 | <?dbhtml filename="zlib.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info condition="script">
|
---|
| 12 | <productname>zlib</productname>
|
---|
| 13 | <productnumber>&zlib-version;</productnumber>
|
---|
| 14 | <address>&zlib-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
| 17 | <title>Zlib-&zlib-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-zlib">
|
---|
| 20 | <primary sortas="a-Zlib">Zlib</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
| 25 |
|
---|
| 26 | <para>The Zlib package contains compression and decompression routines used by
|
---|
| 27 | some programs.</para>
|
---|
| 28 |
|
---|
| 29 | <segmentedlist>
|
---|
| 30 | <segtitle>&buildtime;</segtitle>
|
---|
| 31 | <segtitle>&diskspace;</segtitle>
|
---|
| 32 |
|
---|
| 33 | <seglistitem>
|
---|
[37e35d2] | 34 | <seg>&zlib-fin-sbu;</seg>
|
---|
| 35 | <seg>&zlib-fin-du;</seg>
|
---|
[1fa2099] | 36 | </seglistitem>
|
---|
| 37 | </segmentedlist>
|
---|
| 38 |
|
---|
| 39 | </sect2>
|
---|
| 40 |
|
---|
| 41 | <sect2 role="installation">
|
---|
| 42 | <title>Installation of Zlib</title>
|
---|
| 43 |
|
---|
| 44 | <para>Prepare Zlib for compilation:</para>
|
---|
| 45 |
|
---|
| 46 | <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
|
---|
| 47 |
|
---|
| 48 | <para>Compile the package:</para>
|
---|
| 49 |
|
---|
| 50 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 51 |
|
---|
| 52 | <para>To test the results, issue:</para>
|
---|
| 53 |
|
---|
| 54 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
| 55 |
|
---|
| 56 | <para>Install the package:</para>
|
---|
| 57 |
|
---|
| 58 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 59 |
|
---|
| 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>
|
---|
| 64 |
|
---|
| 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>
|
---|
| 67 |
|
---|
[4bda698] | 68 | <para>Remove an useless static library:</para>
|
---|
| 69 |
|
---|
| 70 | <screen><userinput remap="install">rm -fv /usr/lib/libz.a</userinput></screen>
|
---|
| 71 |
|
---|
[1fa2099] | 72 | </sect2>
|
---|
| 73 |
|
---|
[37e35d2] | 74 | <!-- - - - - - - - - - -->
|
---|
| 75 | <!-- Multilib - 32bit -->
|
---|
| 76 | <!-- - - - - - - - - - -->
|
---|
| 77 |
|
---|
[ee1a413] | 78 | <sect2 arch="ml_32,ml_all" role="installation">
|
---|
[37e35d2] | 79 | <title>Installation of Zlib - 32bit</title>
|
---|
[8eb3fe4] | 80 |
|
---|
| 81 | <para>Clean previous build:</para>
|
---|
| 82 |
|
---|
| 83 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
| 84 |
|
---|
| 85 | <para>Prepare Zlib for compilation:</para>
|
---|
| 86 |
|
---|
[37e35d2] | 87 | <screen><userinput remap="configure">CC="gcc -m32" \
|
---|
[8eb3fe4] | 88 | ./configure --prefix=/usr \
|
---|
[37e35d2] | 89 | --libdir=&usr-lib-m32;</userinput></screen>
|
---|
[8eb3fe4] | 90 |
|
---|
| 91 | <para>Compile the package:</para>
|
---|
| 92 |
|
---|
| 93 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 94 |
|
---|
| 95 | <para>Install the package:</para>
|
---|
| 96 |
|
---|
| 97 | <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
|
---|
[37e35d2] | 98 | cp -Rv DESTDIR&usr-lib-m32;/* &usr-lib-m32;
|
---|
[8eb3fe4] | 99 | rm -rf DESTDIR</userinput></screen>
|
---|
| 100 |
|
---|
[37e35d2] | 101 | </sect2><!-- m32 -->
|
---|
| 102 |
|
---|
| 103 | <!-- - - - - - - - - - -->
|
---|
| 104 | <!-- Multilib - x32bit -->
|
---|
| 105 | <!-- - - - - - - - - - -->
|
---|
[8eb3fe4] | 106 |
|
---|
[ee1a413] | 107 | <sect2 arch="ml_x32,ml_all" role="installation">
|
---|
[37e35d2] | 108 | <title>Installation of Zlib - x32bit</title>
|
---|
[8eb3fe4] | 109 |
|
---|
| 110 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
| 111 |
|
---|
| 112 | <para>Prepare Zlib for compilation:</para>
|
---|
| 113 |
|
---|
| 114 | <screen><userinput remap="configure">CC="gcc -mx32" \
|
---|
| 115 | ./configure --prefix=/usr \
|
---|
[37e35d2] | 116 | --libdir=&usr-lib-mx32;</userinput></screen>
|
---|
[8eb3fe4] | 117 |
|
---|
| 118 | <para>Compile the package:</para>
|
---|
| 119 |
|
---|
| 120 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 121 |
|
---|
| 122 | <para>Install the package:</para>
|
---|
| 123 |
|
---|
| 124 | <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
|
---|
[37e35d2] | 125 | cp -Rv DESTDIR&usr-lib-mx32;/* &usr-lib-mx32;
|
---|
[8eb3fe4] | 126 | rm -rf DESTDIR</userinput></screen>
|
---|
| 127 |
|
---|
[37e35d2] | 128 | </sect2><!-- mx32 -->
|
---|
[8eb3fe4] | 129 |
|
---|
[1fa2099] | 130 | <sect2 id="contents-zlib" role="content">
|
---|
| 131 | <title>Contents of Zlib</title>
|
---|
| 132 |
|
---|
| 133 | <segmentedlist>
|
---|
| 134 | <segtitle>Installed libraries</segtitle>
|
---|
| 135 |
|
---|
| 136 | <seglistitem>
|
---|
[4bda698] | 137 | <seg>libz.so</seg>
|
---|
[1fa2099] | 138 | </seglistitem>
|
---|
| 139 | </segmentedlist>
|
---|
| 140 |
|
---|
| 141 | <variablelist>
|
---|
| 142 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 143 | <?dbfo list-presentation="list"?>
|
---|
| 144 | <?dbhtml list-presentation="table"?>
|
---|
| 145 |
|
---|
| 146 | <varlistentry id="libz">
|
---|
| 147 | <term><filename class="libraryfile">libz</filename></term>
|
---|
| 148 | <listitem>
|
---|
| 149 | <para>Contains compression and decompression functions used by
|
---|
| 150 | some programs</para>
|
---|
| 151 | <indexterm zone="ch-system-zlib libz">
|
---|
| 152 | <primary sortas="c-libz">libz</primary>
|
---|
| 153 | </indexterm>
|
---|
| 154 | </listitem>
|
---|
| 155 | </varlistentry>
|
---|
| 156 |
|
---|
| 157 | </variablelist>
|
---|
| 158 |
|
---|
| 159 | </sect2>
|
---|
| 160 |
|
---|
| 161 | </sect1>
|
---|