bzip2.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <sect1 id="ch06-bzip2">
  2. <title>Installing Bzip2-&bzip2-version;</title>
  3. <?dbhtml filename="bzip2.html" dir="chapter06"?>
  4. <screen>Estimated build time: &bzip2-time;
  5. Estimated required disk space: &bzip2-compsize;</screen>
  6. &aa-bzip2-shortdesc;
  7. &aa-bzip2-dep;
  8. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  9. <sect2>
  10. <title>Installation of Bzip2</title>
  11. <para>Prepare Bzip2 for compilation with:</para>
  12. <screen><userinput>make -f Makefile-libbz2_so
  13. make clean</userinput></screen>
  14. <para>The <emphasis>-f</emphasis> flag will cause Bzip2 to be built
  15. using a different <filename>Makefile</filename> file, in this case the
  16. <filename>Makefile-libbz2_so</filename> file, which creates a dynamic
  17. <filename>libbz2.so</filename> library and links the bzip2 utilities
  18. against it.</para>
  19. <para>Compile the package:</para>
  20. <screen><userinput>make</userinput></screen>
  21. <para>Install it:</para>
  22. <screen><userinput>make install</userinput></screen>
  23. <para>And install the shared <userinput>bzip2</userinput> binary into the
  24. <filename class="directory">/bin</filename> directory, then make some
  25. necessary symbolic links, and clean up.</para>
  26. <screen><userinput>cp bzip2-shared /bin/bzip2
  27. cp -a libbz2.so* /lib
  28. ln -s ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
  29. rm /usr/bin/{bunzip2,bzcat,bzip2}
  30. mv /usr/bin/{bzip2recover,bzless,bzmore} /bin
  31. ln -s bzip2 /bin/bunzip2
  32. ln -s bzip2 /bin/bzcat</userinput></screen>
  33. </sect2>
  34. </sect1>