gzip-inst.xml 983 B

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. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  6. <para>The gzexe program has the location of the gzip binary hard-wired 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. <screen><userinput>cp gzexe.in{,.backup}
  10. sed 's%"BINDIR"%/bin%' gzexe.in.backup &gt; gzexe.in</userinput></screen>
  11. <para>Compile the package:</para>
  12. <screen><userinput>make</userinput></screen>
  13. <para>Install the package:</para>
  14. <screen><userinput>make install</userinput></screen>
  15. <para>And move the programs to the <filename
  16. class="directory">/bin</filename> directory:</para>
  17. <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>
  22. </sect2>