[bf8c11f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" |
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/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 | <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 | |
---|
[6732e02] | 28 | <para os="p1">This patch will add -fPIC to our build and allow us to build |
---|
| 29 | a static and shared library at the same time:</para> |
---|
[bf8c11f] | 30 | |
---|
[6732e02] | 31 | <screen os="p2"><userinput>patch -Np1 -i ../&zlib-fpic-patch;</userinput></screen> |
---|
[bf8c11f] | 32 | |
---|
[6732e02] | 33 | <para os="a">Prepare Zlib for compilation:</para> |
---|
[bf8c11f] | 34 | |
---|
[6732e02] | 35 | <screen os="b"><userinput>./configure --prefix=/usr --shared</userinput></screen> |
---|
[bf8c11f] | 36 | |
---|
[6732e02] | 37 | <para os="c">Compile the package:</para> |
---|
[bf8c11f] | 38 | |
---|
[6732e02] | 39 | <screen os="d"><userinput>make</userinput></screen> |
---|
| 40 | |
---|
| 41 | <para os="e">To test the results, issue: |
---|
[bf8c11f] | 42 | <userinput>make check</userinput>.</para> |
---|
| 43 | |
---|
[8c50f0e] | 44 | <para os="f">Install the package:</para> |
---|
[bf8c11f] | 45 | |
---|
[6732e02] | 46 | <screen os="g"><userinput>make install</userinput></screen> |
---|
[bf8c11f] | 47 | |
---|
[6732e02] | 48 | <para os="h">The previous command installed a <filename |
---|
[bf8c11f] | 49 | class="extension">.so</filename> file in <filename |
---|
[e5be257] | 50 | class="directory">/usr/lib</filename>. We will move it into |
---|
[6732e02] | 51 | <filename class="directory">/lib</filename> and then relink it |
---|
| 52 | to <filename class="directory">/usr/lib</filename>:</para> |
---|
[bf8c11f] | 53 | |
---|
[dd9906e] | 54 | <screen os="i"><userinput>mv -v /usr/lib/libz.so.* /lib |
---|
| 55 | ln -svf ../../lib/libz.so.1 /usr/lib/libz.so</userinput></screen> |
---|
[bf8c11f] | 56 | |
---|
[6732e02] | 57 | <para os="j">Now we fix the permissions on the static library:</para> |
---|
[bf8c11f] | 58 | |
---|
[dd9906e] | 59 | <screen os="k"><userinput>chmod -v 644 /usr/lib/libz.a</userinput></screen> |
---|
[bf8c11f] | 60 | |
---|
| 61 | </sect2> |
---|
| 62 | |
---|
| 63 | <sect2 id="contents-zlib" role="content"> |
---|
| 64 | <title>Contents of Zlib</title> |
---|
| 65 | |
---|
| 66 | <segmentedlist> |
---|
| 67 | <segtitle>Installed libraries</segtitle> |
---|
| 68 | |
---|
| 69 | <seglistitem> |
---|
| 70 | <seg>libz.[a,so]</seg> |
---|
| 71 | </seglistitem> |
---|
| 72 | </segmentedlist> |
---|
| 73 | |
---|
| 74 | <variablelist> |
---|
| 75 | <bridgehead renderas="sect3">Short Descriptions</bridgehead> |
---|
| 76 | <?dbfo list-presentation="list"?> |
---|
| 77 | <?dbhtml list-presentation="table"?> |
---|
| 78 | |
---|
| 79 | <varlistentry id="libz"> |
---|
| 80 | <term><filename class="libraryfile">libz</filename></term> |
---|
| 81 | <listitem> |
---|
| 82 | <para>Contains compression and decompression |
---|
| 83 | functions used by some programs</para> |
---|
| 84 | <indexterm zone="ch-system-zlib libz"> |
---|
| 85 | <primary sortas="c-libz">libz</primary> |
---|
| 86 | </indexterm> |
---|
| 87 | </listitem> |
---|
| 88 | </varlistentry> |
---|
| 89 | |
---|
| 90 | </variablelist> |
---|
| 91 | |
---|
| 92 | </sect2> |
---|
| 93 | |
---|
| 94 | </sect1> |
---|