gzip.xml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 gzexe program has the location of the gzip binary hard-wired into
  14. it. Because we later change the location of this binary, the following
  15. command will place the new location into the gzexe binary.</para>
  16. <screen><userinput>cp gzexe.in{,.backup}
  17. sed 's%"BINDIR"%/bin%' gzexe.in.backup &gt; gzexe.in</userinput></screen>
  18. <para>Compile the package:</para>
  19. <screen><userinput>make</userinput></screen>
  20. <para>Install the package:</para>
  21. <screen><userinput>make install</userinput></screen>
  22. <para>And move the programs to the <filename
  23. class="directory">/bin</filename> directory:</para>
  24. <screen><userinput>mv /usr/bin/gzip /bin
  25. rm /usr/bin/{gunzip,zcat}
  26. ln -s gzip /bin/gunzip
  27. ln -s gzip /bin/zcat
  28. ln -s gunzip /bin/uncompress</userinput></screen>
  29. </sect2>
  30. </sect1>