source: BOOK/final-system/common/zlib.xml@ 0019206

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 0019206 was 1322a63, checked in by Jim Gifford <clfs@…>, 19 years ago

r1169@server (orig r1167): chris | 2006-02-11 19:55:38 -0800
Various text updates

  • Property mode set to 100644
File size: 2.9 KB
Line 
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 <segmentedlist>
24 <segtitle>&dependencies;</segtitle>
25
26 <seglistitem>
27 <seg>Binutils, Coreutils, GCC, Glibc, Make, and Sed</seg>
28 </seglistitem>
29 </segmentedlist>
30
31 </sect2>
32
33 <sect2 role="installation">
34 <title>Installation of Zlib</title>
35
36 <para os="p1">This patch will add -fPIC to our build and allow us to build
37 a static and shared library at the same time:</para>
38
39<screen os="p2"><userinput>patch -Np1 -i ../&zlib-fpic-patch;</userinput></screen>
40
41 <para os="a">Prepare Zlib for compilation:</para>
42
43<screen os="b"><userinput>./configure --prefix=/usr --shared</userinput></screen>
44
45 <para os="c">Compile the package:</para>
46
47<screen os="d"><userinput>make</userinput></screen>
48
49 <para os="e">To test the results, issue:
50 <userinput>make check</userinput>.</para>
51
52 <para os="f">Install the package:</para>
53
54<screen os="g"><userinput>make install</userinput></screen>
55
56 <para os="h">The previous command installed a <filename
57 class="extension">.so</filename> file in <filename
58 class="directory">/usr/lib</filename>. We will remove itinto
59 <filename class="directory">/lib</filename> and then relink it
60 to <filename class="directory">/usr/lib</filename>:</para>
61
62<screen os="i"><userinput>mv -v /usr/lib/libz.so.* /lib
63ln -svf ../../lib/libz.so.1 /usr/lib/libz.so</userinput></screen>
64
65 <para os="j">Now we fix the permissions on the static library:</para>
66
67<screen os="k"><userinput>chmod -v 644 /usr/lib/libz.a</userinput></screen>
68
69 </sect2>
70
71 <sect2 id="contents-zlib" role="content">
72 <title>Contents of Zlib</title>
73
74 <segmentedlist>
75 <segtitle>Installed libraries</segtitle>
76
77 <seglistitem>
78 <seg>libz.[a,so]</seg>
79 </seglistitem>
80 </segmentedlist>
81
82 <variablelist>
83 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
84 <?dbfo list-presentation="list"?>
85 <?dbhtml list-presentation="table"?>
86
87 <varlistentry id="libz">
88 <term><filename class="libraryfile">libz</filename></term>
89 <listitem>
90 <para>Contains compression and decompression
91 functions used by some programs</para>
92 <indexterm zone="ch-system-zlib libz">
93 <primary sortas="c-libz">libz</primary>
94 </indexterm>
95 </listitem>
96 </varlistentry>
97
98 </variablelist>
99
100 </sect2>
101
102</sect1>
Note: See TracBrowser for help on using the repository browser.