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