Changeset e02afe0 for chapter06/zlib.xml
- Timestamp:
- 02/10/2006 07:38:49 PM (18 years ago)
- Children:
- 851829a
- Parents:
- 529c103
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/zlib.xml
r529c103 re02afe0 1 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" [ 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 7 6 8 <sect1 id="ch-system-zlib" role="wrap"> 7 <title>Zlib-&zlib-version;</title> 8 <?dbhtml filename="zlib.html"?> 9 <?dbhtml filename="zlib.html"?> 9 10 10 <indexterm zone="ch-system-zlib"><primary sortas="a-Zlib">Zlib</primary></indexterm>11 <title>Zlib-&zlib-version;</title> 11 12 12 <sect2 role="package"><title/>13 <para>The Zlib package contains compression and decompression routines used by 14 some programs.</para>13 <indexterm zone="ch-system-zlib"> 14 <primary sortas="a-Zlib">Zlib</primary> 15 </indexterm> 15 16 16 <segmentedlist> 17 <segtitle>&buildtime;</segtitle> 18 <segtitle>&diskspace;</segtitle> 19 <seglistitem><seg>0.1 SBU</seg><seg>2.7 MB</seg></seglistitem> 20 </segmentedlist> 17 <sect2 role="package"> 18 <title/> 21 19 22 <segmentedlist> 23 <segtitle>&dependencies;</segtitle> 24 <seglistitem><seg>Binutils, Coreutils, GCC, Glibc, Make, and Sed</seg></seglistitem> 25 </segmentedlist> 26 </sect2> 20 <para>The Zlib package contains compression and decompression routines used by 21 some programs.</para> 27 22 28 <sect2 role="installation"> 29 <title>Installation of Zlib</title> 23 <segmentedlist> 24 <segtitle>&buildtime;</segtitle> 25 <segtitle>&diskspace;</segtitle> 30 26 31 <note><para>Zlib is known to build its shared library incorrectly if 32 <envar>CFLAGS</envar> is specified in the environment. If using a 33 specified <envar>CFLAGS</envar> 34 variable, be sure to add the <parameter>-fPIC</parameter> directive to 35 the <envar>CFLAGS</envar> variable for the duration of the 36 configure command below, then remove it afterwards.</para></note> 27 <seglistitem> 28 <seg>0.1 SBU</seg> 29 <seg>2.7 MB</seg> 30 </seglistitem> 31 </segmentedlist> 37 32 38 <para>Prepare Zlib for compilation:</para> 33 <segmentedlist> 34 <segtitle>&dependencies;</segtitle> 35 36 <seglistitem> 37 <seg>Binutils, Coreutils, GCC, Glibc, Make, and Sed</seg> 38 </seglistitem> 39 </segmentedlist> 40 41 </sect2> 42 43 <sect2 role="installation"> 44 <title>Installation of Zlib</title> 45 46 <note> 47 <para>Zlib is known to build its shared library incorrectly if 48 <envar>CFLAGS</envar> is specified in the environment. If using 49 a specified <envar>CFLAGS</envar> variable, be sure to add the 50 <parameter>-fPIC</parameter> directive to the <envar>CFLAGS</envar> 51 variable for the duration of the configure command below, then 52 remove it afterwards.</para> 53 </note> 54 55 <para>Prepare Zlib for compilation:</para> 39 56 40 57 <screen><userinput>./configure --prefix=/usr --shared --libdir=/lib</userinput></screen> 41 58 42 <para>Compile the package:</para>59 <para>Compile the package:</para> 43 60 44 61 <screen><userinput>make</userinput></screen> 45 62 46 <para>To test the results, issue:47 <userinput>make check</userinput>.</para>63 <para>To test the results, issue: 64 <userinput>make check</userinput>.</para> 48 65 49 <para>Install the shared library:</para>66 <para>Install the shared library:</para> 50 67 51 68 <screen><userinput>make install</userinput></screen> 52 69 53 <para>The previous command installed a <filename54 class="extension">.so</filename> file in <filename55 class="directory">/lib</filename>. We will remove it and relink it into56 <filename class="directory">/usr/lib</filename>:</para>70 <para>The previous command installed a <filename 71 class="extension">.so</filename> file in <filename 72 class="directory">/lib</filename>. We will remove it and relink it into 73 <filename class="directory">/usr/lib</filename>:</para> 57 74 58 75 <screen><userinput>rm -v /lib/libz.so 59 76 ln -sfv ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen> 60 77 61 <para>Build the static library:</para>78 <para>Build the static library:</para> 62 79 63 80 <screen><userinput>make clean … … 65 82 make</userinput></screen> 66 83 67 <para>To test the results again, issue:68 <userinput>make check</userinput>.</para>84 <para>To test the results again, issue: 85 <userinput>make check</userinput>.</para> 69 86 70 <para>Install the static library:</para>87 <para>Install the static library:</para> 71 88 72 89 <screen><userinput>make install</userinput></screen> 73 90 74 <para>Fix the permissions on the static library:</para>91 <para>Fix the permissions on the static library:</para> 75 92 76 93 <screen><userinput>chmod -v 644 /usr/lib/libz.a</userinput></screen> 77 94 78 </sect2>95 </sect2> 79 96 97 <sect2 id="contents-zlib" role="content"> 98 <title>Contents of Zlib</title> 80 99 81 <sect2 id="contents-zlib" role="content"><title>Contents of Zlib</title> 100 <segmentedlist> 101 <segtitle>Installed libraries</segtitle> 82 102 83 <segmentedlist>84 <segtitle>Installed libraries</segtitle>85 <seglistitem><seg>libz.[a,so]</seg></seglistitem>86 </segmentedlist>103 <seglistitem> 104 <seg>libz.[a,so]</seg> 105 </seglistitem> 106 </segmentedlist> 87 107 88 <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead> 89 <?dbfo list-presentation="list"?> 90 <?dbhtml list-presentation="table"?> 108 <variablelist> 109 <bridgehead renderas="sect3">Short Descriptions</bridgehead> 110 <?dbfo list-presentation="list"?> 111 <?dbhtml list-presentation="table"?> 91 112 92 <varlistentry id="libz"> 93 <term><filename class="libraryfile">libz</filename></term> 94 <listitem> 95 <para>Contains compression and decompression 96 functions used by some programs</para> 97 <indexterm zone="ch-system-zlib libz"><primary sortas="c-libz">libz</primary></indexterm> 98 </listitem> 99 </varlistentry> 100 </variablelist> 113 <varlistentry id="libz"> 114 <term><filename class="libraryfile">libz</filename></term> 115 <listitem> 116 <para>Contains compression and decompression functions used by 117 some programs</para> 118 <indexterm zone="ch-system-zlib libz"> 119 <primary sortas="c-libz">libz</primary> 120 </indexterm> 121 </listitem> 122 </varlistentry> 101 123 102 </sect2> 124 </variablelist> 125 126 </sect2> 103 127 104 128 </sect1> 105
Note:
See TracChangeset
for help on using the changeset viewer.