bzip2.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <sect1 id="ch06-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 <userinput>gzip</userinput>.</para>
  7. <screen>Estimated build time: &bzip2-time;
  8. Estimated required disk space: &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>Install it:</para>
  25. <screen><userinput>make install</userinput></screen>
  26. <para>And install the shared <userinput>bzip2</userinput> binary into the
  27. <filename class="directory">/bin</filename> directory, then make some
  28. necessary symbolic links, and clean up:</para>
  29. <screen><userinput>cp bzip2-shared /bin/bzip2
  30. cp -a libbz2.so* /lib
  31. ln -s ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
  32. rm /usr/bin/{bunzip2,bzcat,bzip2}
  33. mv /usr/bin/{bzip2recover,bzless,bzmore} /bin
  34. ln -s bzip2 /bin/bunzip2
  35. ln -s bzip2 /bin/bzcat</userinput></screen>
  36. </sect2>
  37. &aa-bzip2-shortdesc;
  38. &aa-bzip2-desc;
  39. </sect1>