[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[aa18ac0] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[3f8be484] | 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 | <title>Zlib-&zlib-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-zlib">
|
---|
| 14 | <primary sortas="a-Zlib">Zlib</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>The Zlib package contains compression and decompression routines
|
---|
| 21 | used by some programs.</para>
|
---|
| 22 |
|
---|
| 23 | </sect2>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="installation">
|
---|
| 26 | <title>Installation of Zlib</title>
|
---|
| 27 |
|
---|
[27178ae] | 28 | <para os="a">Prepare Zlib for compilation:</para>
|
---|
[3f8be484] | 29 |
|
---|
[b6831b6] | 30 | <screen os="b"><userinput>CC="gcc -isystem /usr/include" \
|
---|
| 31 | CXX="g++ -isystem /usr/include" \
|
---|
| 32 | LDFLAGS="-Wl,-rpath-link,/usr/lib:/lib" \
|
---|
| 33 | ./configure --prefix=/usr</userinput></screen>
|
---|
[3f8be484] | 34 |
|
---|
[27178ae] | 35 | <para os="c">Compile the package:</para>
|
---|
[3f8be484] | 36 |
|
---|
[27178ae] | 37 | <screen os="d"><userinput>make</userinput></screen>
|
---|
| 38 |
|
---|
[686839b] | 39 | <para os="e">To test the results, issue:</para>
|
---|
| 40 |
|
---|
[6cb444f] | 41 | <screen os="e2"><userinput remap="test">make check</userinput></screen>
|
---|
[3f8be484] | 42 |
|
---|
[1322a63] | 43 | <para os="f">Install the package:</para>
|
---|
[3f8be484] | 44 |
|
---|
[27178ae] | 45 | <screen os="g"><userinput>make install</userinput></screen>
|
---|
[3f8be484] | 46 |
|
---|
[c4534a5] | 47 | <para os="h">The previous command installed two <filename
|
---|
| 48 | class="extension">.so</filename> files into <filename
|
---|
[68d3e1bb] | 49 | class="directory">/usr/lib</filename>. We will move them into
|
---|
| 50 | <filename class="directory">/lib</filename> and then recreate a link
|
---|
| 51 | in <filename class="directory">/usr/lib</filename>:</para>
|
---|
[3f8be484] | 52 |
|
---|
[94e6142] | 53 | <screen os="i"><userinput>mv -v /usr/lib/libz.so.* /lib
|
---|
[4302a8c] | 54 | ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so</userinput></screen>
|
---|
[3f8be484] | 55 |
|
---|
[5bf1b70e] | 56 | <para os="j">Install the documentation:</para>
|
---|
| 57 |
|
---|
| 58 | <screen os="k"><userinput>mkdir -pv /usr/share/doc/zlib-&zlib-version;
|
---|
| 59 | cp -rv doc/* examples /usr/share/doc/zlib-&zlib-version;</userinput></screen>
|
---|
| 60 |
|
---|
[3f8be484] | 61 | </sect2>
|
---|
| 62 |
|
---|
| 63 | <sect2 id="contents-zlib" role="content">
|
---|
| 64 | <title>Contents of Zlib</title>
|
---|
| 65 |
|
---|
| 66 | <segmentedlist>
|
---|
| 67 | <segtitle>Installed libraries</segtitle>
|
---|
[5bf1b70e] | 68 | <segtitle>Installed directory</segtitle>
|
---|
[3f8be484] | 69 |
|
---|
| 70 | <seglistitem>
|
---|
| 71 | <seg>libz.[a,so]</seg>
|
---|
[5bf1b70e] | 72 | <seg>/usr/share/doc/zlib-&zlib-version;</seg>
|
---|
[3f8be484] | 73 | </seglistitem>
|
---|
| 74 | </segmentedlist>
|
---|
| 75 |
|
---|
| 76 | <variablelist>
|
---|
| 77 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 78 | <?dbfo list-presentation="list"?>
|
---|
| 79 | <?dbhtml list-presentation="table"?>
|
---|
| 80 |
|
---|
| 81 | <varlistentry id="libz">
|
---|
| 82 | <term><filename class="libraryfile">libz</filename></term>
|
---|
| 83 | <listitem>
|
---|
| 84 | <para>Contains compression and decompression
|
---|
| 85 | functions used by some programs</para>
|
---|
| 86 | <indexterm zone="ch-system-zlib libz">
|
---|
| 87 | <primary sortas="c-libz">libz</primary>
|
---|
| 88 | </indexterm>
|
---|
| 89 | </listitem>
|
---|
| 90 | </varlistentry>
|
---|
| 91 |
|
---|
| 92 | </variablelist>
|
---|
| 93 |
|
---|
| 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 | </sect1>
|
---|