[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-system-zlib" xreflabel="Zlib" role="wrap">
|
---|
[673b0d8] | 7 | <title>Zlib-&zlib-version;</title>
|
---|
| 8 | <?dbhtml filename="zlib.html"?>
|
---|
[24380c7] | 9 |
|
---|
[673b0d8] | 10 | <indexterm zone="ch-system-zlib"><primary sortas="a-Zlib">Zlib</primary></indexterm>
|
---|
| 11 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[5888299] | 13 |
|
---|
[a001133] | 14 | <segmentedlist>
|
---|
| 15 | <segtitle>&buildtime;</segtitle>
|
---|
| 16 | <segtitle>&diskspace;</segtitle>
|
---|
| 17 | <seglistitem><seg>0.1 SBU</seg><seg>1.5 MB</seg></seglistitem>
|
---|
| 18 | </segmentedlist>
|
---|
[673b0d8] | 19 |
|
---|
[a001133] | 20 | </sect2>
|
---|
[24380c7] | 21 |
|
---|
[a001133] | 22 | <sect2 role="installation">
|
---|
[73aedd1d] | 23 | <title>Installation of Zlib</title>
|
---|
| 24 |
|
---|
[4248b0e] | 25 | <para>Prepare Zlib for compilation:</para>
|
---|
| 26 |
|
---|
[5091251] | 27 | <screen><userinput>./configure --prefix=/usr --shared --libdir=/lib</userinput></screen>
|
---|
[4248b0e] | 28 |
|
---|
[73aedd1d] | 29 | <para>Compile the package:</para>
|
---|
| 30 |
|
---|
| 31 | <screen><userinput>make</userinput></screen>
|
---|
| 32 |
|
---|
[673b0d8] | 33 | <para>To test the results, issue:
|
---|
[8a5f906] | 34 | <userinput>make check</userinput>.</para>
|
---|
[dfddb12] | 35 |
|
---|
| 36 | <para>Install the shared library:</para>
|
---|
[73aedd1d] | 37 |
|
---|
| 38 | <screen><userinput>make install</userinput></screen>
|
---|
| 39 |
|
---|
[7111666] | 40 | <para>Now we will remove the old, .so files in /lib and relink them into /usr/lib.</para>
|
---|
| 41 |
|
---|
| 42 | <screen><userinput>rm /lib/libz.so
|
---|
| 43 | ln -sf ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen>
|
---|
| 44 |
|
---|
[dfddb12] | 45 | <para>Now also build the non-shared (static) library:</para>
|
---|
[8ad7980] | 46 |
|
---|
[73aedd1d] | 47 | <screen><userinput>make clean
|
---|
| 48 | ./configure --prefix=/usr
|
---|
| 49 | make</userinput></screen>
|
---|
| 50 |
|
---|
[673b0d8] | 51 | <para>To again test the results, issue:
|
---|
[8a5f906] | 52 | <userinput>make check</userinput>.</para>
|
---|
[73aedd1d] | 53 |
|
---|
[84e4cae] | 54 | <para>Install the static library:</para>
|
---|
[73aedd1d] | 55 |
|
---|
| 56 | <screen><userinput>make install</userinput></screen>
|
---|
| 57 |
|
---|
[84e4cae] | 58 | <para>And fix the permissions on the static library:</para>
|
---|
| 59 |
|
---|
| 60 | <screen><userinput>chmod 644 /usr/lib/libz.a</userinput></screen>
|
---|
| 61 |
|
---|
[73aedd1d] | 62 | </sect2>
|
---|
[24380c7] | 63 |
|
---|
[5888299] | 64 |
|
---|
[c6cb3aa] | 65 | <sect2 id="contents-zlib" role="content"><title>Contents of Zlib</title>
|
---|
[673b0d8] | 66 |
|
---|
[3f0c882] | 67 | <para>See testing</para>
|
---|
[673b0d8] | 68 |
|
---|
| 69 | </sect2>
|
---|
| 70 |
|
---|
| 71 | </sect1>
|
---|