Added a few comments here and there
[linux_from_scratch.git] / newxml / chapter06 / gzip.xml
blob5ae789d6a4dfbb2fbcdfd6b8aea923baba500a95
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3CR2//EN" "http://www.docbook.org/xml/4.3CR2/docbookx.dtd" [
3   <!ENTITY % gzip-entities SYSTEM "../ent/gzip.ent">
4   %gzip-entities;
5 ]>
6 <sect1 id="ch06-gzip">
7 <title>Installing Gzip-&gzip-version;</title>
8 <?dbhtml filename="gzip.html"?>
10 <screen>Estimated build time:           0.1 SBU
11 Estimated required disk space:  2.6 MB</screen>
13 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../appendixa/gzip-contents.xml"/>
16 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../appendixa/gzip-deps.xml"/>
20 <sect2>
21 <title>Installation of Gzip</title>
23 <para>Prepare Gzip for compilation:</para>
25 <screen><userinput>./configure --prefix=/usr</userinput></screen>
27 <para>The <userinput>gzexe</userinput> script has the location of the
28 <userinput>gzip</userinput> binary hard-wired into it. Because we later change
29 the location of the binary, the following command assures that the new
30 location gets placed into the script:</para>
32 <screen><userinput>cp gzexe.in{,.backup}
33 sed 's%"BINDIR"%/bin%' gzexe.in.backup &gt; gzexe.in</userinput></screen>
35 <para>Compile the package:</para>
37 <screen><userinput>make</userinput></screen>
39 <para>Install the package:</para>
41 <screen><userinput>make install</userinput></screen>
43 <para>And move the programs to the <filename class="directory">/bin</filename> directory:</para>
45 <screen><userinput>mv /usr/bin/gzip /bin
46 rm /usr/bin/{gunzip,zcat}
47 ln -s gzip /bin/gunzip
48 ln -s gzip /bin/zcat
49 ln -s gunzip /bin/uncompress</userinput></screen>
51 </sect2>
53 </sect1>