1 | <sect2><title> </title><para> </para></sect2>
|
---|
2 |
|
---|
3 | <sect2>
|
---|
4 | <title>Installation of Zlib</title>
|
---|
5 |
|
---|
6 | <para>Prepare Zlib to be compiled:</para>
|
---|
7 |
|
---|
8 | <para><screen><userinput>CFLAGS="$CFLAGS -fPIC" \
|
---|
9 | ./configure --prefix=/usr --shared</userinput></screen></para>
|
---|
10 |
|
---|
11 | <para>The <emphasis>-fPIC</emphasis> flag helps to assure
|
---|
12 | quality in the dynamic zlib library.</para>
|
---|
13 |
|
---|
14 | <para>Some packages expect a static zlib library to be present
|
---|
15 | on the system. To satisfy those programs, compile both the
|
---|
16 | shared and static libraries:</para>
|
---|
17 |
|
---|
18 | <para><screen><userinput>make LIBS="libz.so.1.1.4 libz.a"</userinput></screen></para>
|
---|
19 |
|
---|
20 | <para>Install the libraries:</para>
|
---|
21 |
|
---|
22 | <para><screen><userinput>make LIBS="libz.so.1.1.4 libz.a" install</userinput></screen></para>
|
---|
23 |
|
---|
24 | <para>The shared zlib library should be installed in the
|
---|
25 | <filename>/lib</filename> directory. That way, in the event
|
---|
26 | that you must boot without the <filename>/usr</filename>
|
---|
27 | directory, vital system programs will still have access to
|
---|
28 | the library. Finish installing shared library:</para>
|
---|
29 |
|
---|
30 | <para><screen><userinput>mv /usr/lib/libz.so.* /lib</userinput></screen></para>
|
---|
31 |
|
---|
32 | <para>The <filename>/usr/lib/libz.so</filename> symlink is
|
---|
33 | linked to a file which no longer exists, because we moved
|
---|
34 | it. Create a symbolic link to the new location of the
|
---|
35 | library:</para>
|
---|
36 |
|
---|
37 | <para><screen><userinput>ln -sf ../../lib/libz.so.1 /usr/lib/libz.so</userinput></screen></para>
|
---|
38 |
|
---|
39 | <para>Zlib does not install its manual page. Issue the
|
---|
40 | following command to install this documentation:</para>
|
---|
41 |
|
---|
42 | <para><screen><userinput>cp zlib.3 /usr/share/man/man3</userinput></screen></para>
|
---|
43 |
|
---|
44 | </sect2>
|
---|