gzip-inst.xml 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Gzip</title>
  4. <para>Prepare Gzip for compilation:</para>
  5. <para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
  6. <para>The gzexe program has the location of the gzip binary hardcoded into
  7. it. Because we later change the location of this binary, the following
  8. command will place the new location into the gzexe binary.</para>
  9. <para><screen><userinput>cp gzexe.in{,.backup}
  10. sed 's%"BINDIR"%/bin%' gzexe.in.backup &gt; gzexe.in</userinput></screen></para>
  11. <para>Compile the package:</para>
  12. <para><screen><userinput>make</userinput></screen></para>
  13. <para>Install the package:</para>
  14. <para><screen><userinput>make install</userinput></screen></para>
  15. <para>And move the programs to the <filename
  16. class="directory">/bin</filename> directory:</para>
  17. <para><screen><userinput>mv /usr/bin/gzip /bin
  18. rm /usr/bin/{gunzip,zcat}
  19. ln -s gzip /bin/gunzip
  20. ln -s gzip /bin/zcat
  21. ln -s gunzip /bin/uncompress</userinput></screen></para>
  22. </sect2>