1
0

gzip.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <sect1 id="ch06-gzip">
  2. <title>Installing Gzip-&gzip-version;</title>
  3. <?dbhtml filename="gzip.html" dir="chapter06"?>
  4. <screen>Estimated build time: &gzip-time;
  5. Estimated required disk space: &gzip-compsize;</screen>
  6. &aa-gzip-shortdesc;
  7. &aa-gzip-dep;
  8. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  9. <sect2>
  10. <title>Installation of Gzip</title>
  11. <para>Prepare Gzip for compilation:</para>
  12. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  13. <para>The <userinput>gzexe</userinput> script has the location of the
  14. <userinput>gzip</userinput> binary hard-wired into it. Because we later change
  15. the location of the binary, the following command assures that the new
  16. location gets placed into the script:</para>
  17. <screen><userinput>cp gzexe.in{,.backup}
  18. sed 's%"BINDIR"%/bin%' gzexe.in.backup &gt; gzexe.in</userinput></screen>
  19. <para>Compile the package:</para>
  20. <screen><userinput>make</userinput></screen>
  21. <para>Install the package:</para>
  22. <screen><userinput>make install</userinput></screen>
  23. <para>And move the programs to the <filename
  24. class="directory">/bin</filename> directory:</para>
  25. <screen><userinput>mv /usr/bin/gzip /bin
  26. rm /usr/bin/{gunzip,zcat}
  27. ln -s gzip /bin/gunzip
  28. ln -s gzip /bin/zcat
  29. ln -s gunzip /bin/uncompress</userinput></screen>
  30. </sect2>
  31. </sect1>