bzip2.xml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <sect1 id="ch-system-bzip2" xreflabel="Bzip2">
  2. <title>Installing Bzip2-&bzip2-version;</title>
  3. <?dbhtml filename="bzip2.html" dir="chapter06"?>
  4. <para>The Bzip2 package contains programs for compressing and decompressing
  5. files. On text files they achieve a much better compression than the
  6. traditional <command>gzip</command>.</para>
  7. <screen>&buildtime; &bzip2-time;
  8. &diskspace; &bzip2-compsize;</screen>
  9. &aa-bzip2-down;
  10. &aa-bzip2-dep;
  11. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  12. <sect2>
  13. <title>Installation of Bzip2</title>
  14. <para>Prepare Bzip2 for compilation with:</para>
  15. <screen><userinput>make -f Makefile-libbz2_so
  16. make clean</userinput></screen>
  17. <para>The <emphasis>-f</emphasis> flag will cause Bzip2 to be built
  18. using a different <filename>Makefile</filename> file, in this case the
  19. <filename>Makefile-libbz2_so</filename> file, which creates a dynamic
  20. <filename>libbz2.so</filename> library and links the Bzip2 utilities
  21. against it.</para>
  22. <para>Compile the package:</para>
  23. <screen><userinput>make</userinput></screen>
  24. <para>If you are reinstalling Bzip2, you will now first have to do
  25. <userinput>rm -f /usr/bin/bz*</userinput>, otherwise the following
  26. <command>make install</command> will fail.</para>
  27. <para>Install the programs:</para>
  28. <screen><userinput>make install</userinput></screen>
  29. <para>And install the shared <command>bzip2</command> binary into the
  30. <filename class="directory">/bin</filename> directory, then make some
  31. necessary symbolic links, and clean up:</para>
  32. <screen><userinput>cp bzip2-shared /bin/bzip2
  33. cp -a libbz2.so* /lib
  34. ln -s ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
  35. rm /usr/bin/{bunzip2,bzcat,bzip2}
  36. mv /usr/bin/{bzip2recover,bzless,bzmore} /bin
  37. ln -s bzip2 /bin/bunzip2
  38. ln -s bzip2 /bin/bzcat</userinput></screen>
  39. </sect2>
  40. &aa-bzip2-shortdesc;
  41. &aa-bzip2-desc;
  42. </sect1>