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

sysvinit
Last change on this file since 427e466 was b27081c4, checked in by Chris Staub <chris@…>, 9 years ago

Put one configure option per line

  • Property mode set to 100644
File size: 2.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/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 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Zlib</title>
27
28 <para os="a">Prepare Zlib for compilation:</para>
29
30<screen os="b"><userinput>CC="gcc -isystem /usr/include" \
31CXX="g++ -isystem /usr/include" \
32LDFLAGS="-Wl,-rpath-link,/usr/lib:/lib" \
33./configure \
34 --prefix=/usr</userinput></screen>
35
36 <para os="c">Compile the package:</para>
37
38<screen os="d"><userinput>make</userinput></screen>
39
40 <para os="e">To test the results, issue:</para>
41
42<screen os="e2"><userinput remap="test">make check</userinput></screen>
43
44 <para os="f">Install the package:</para>
45
46<screen os="g"><userinput>make install</userinput></screen>
47
48 <para os="h">The previous command installed two <filename
49 class="extension">.so</filename> files into <filename
50 class="directory">/usr/lib</filename>. We will move them into
51 <filename class="directory">/lib</filename> and then recreate a link
52 in <filename class="directory">/usr/lib</filename>:</para>
53
54<screen os="i"><userinput>mv -v /usr/lib/libz.so.* /lib
55ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so</userinput></screen>
56
57 <para os="j">Install the documentation:</para>
58
59<screen os="k"><userinput>mkdir -pv /usr/share/doc/zlib-&zlib-version;
60cp -rv doc/* examples /usr/share/doc/zlib-&zlib-version;</userinput></screen>
61
62 </sect2>
63
64 <sect2 id="contents-zlib" role="content">
65 <title>Contents of Zlib</title>
66
67 <segmentedlist>
68 <segtitle>Installed libraries</segtitle>
69 <segtitle>Installed directory</segtitle>
70
71 <seglistitem>
72 <seg>libz.[a,so]</seg>
73 <seg>/usr/share/doc/zlib-&zlib-version;</seg>
74 </seglistitem>
75 </segmentedlist>
76
77 <variablelist>
78 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
79 <?dbfo list-presentation="list"?>
80 <?dbhtml list-presentation="table"?>
81
82 <varlistentry id="libz">
83 <term><filename class="libraryfile">libz</filename></term>
84 <listitem>
85 <para>Contains compression and decompression
86 functions used by some programs</para>
87 <indexterm zone="ch-system-zlib libz">
88 <primary sortas="c-libz">libz</primary>
89 </indexterm>
90 </listitem>
91 </varlistentry>
92
93 </variablelist>
94
95 </sect2>
96
97</sect1>
Note: See TracBrowser for help on using the repository browser.