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

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

r1075@server (orig r1073): ken | 2006-01-13 13:11:11 -0800
Add missing destination to mv commands in final-system zlib.

  • Property mode set to 100644
File size: 2.9 KB
RevLine 
[3f8be484]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
[27178ae]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>
[3f8be484]38
[27178ae]39<screen os="p2"><userinput>patch -Np1 -i ../&zlib-fpic-patch;</userinput></screen>
[3f8be484]40
[27178ae]41 <para os="a">Prepare Zlib for compilation:</para>
[3f8be484]42
[27178ae]43<screen os="b"><userinput>./configure --prefix=/usr --shared</userinput></screen>
[3f8be484]44
[27178ae]45 <para os="c">Compile the package:</para>
[3f8be484]46
[27178ae]47<screen os="d"><userinput>make</userinput></screen>
48
49 <para os="e">To test the results, issue:
[3f8be484]50 <userinput>make check</userinput>.</para>
51
[27178ae]52 <para os="f">Installation:</para>
[3f8be484]53
[27178ae]54<screen os="g"><userinput>make install</userinput></screen>
[3f8be484]55
[27178ae]56 <para os="h">The previous command installed a <filename
[3f8be484]57 class="extension">.so</filename> file in <filename
[27178ae]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>
[3f8be484]61
[1967cc7]62<screen os="i"><userinput>mv /usr/lib/libz.so.* /lib
[27178ae]63ln -sf ../../lib/libz.so.1 /usr/lib/libz.so</userinput></screen>
[3f8be484]64
[27178ae]65 <para os="j">Now we fix the permissions on the static library:</para>
[3f8be484]66
[27178ae]67<screen os="k"><userinput>chmod 644 /usr/lib/libz.a</userinput></screen>
[3f8be484]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.