bzip2-inst.xml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Bzip2</title>
  4. <para>Begin compiling the package:</para>
  5. <para><screen><userinput>make -f Makefile-libbz2_so</userinput></screen></para>
  6. <para>The <emphasis>-f</emphasis> flag will cause bzip2 to be built
  7. using a different <filename>Makefile</filename> file, in this case the
  8. <filename>Makefile-libbz2_so</filename> file, which creates a dynamic
  9. <filename>libbz2.so</filename> library and links the bzip2 utilities
  10. against it.</para>
  11. <para>Continue compiling 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>Copy the Bzip2 binary into the <filename
  16. class="directory">/bin</filename> directory, make some
  17. necessary symbolic links and clean up.</para>
  18. <para><screen><userinput>cp bzip2-shared /bin/bzip2 &amp;&amp;
  19. cp -a libbz2.so* /lib &amp;&amp;
  20. ln -s ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so &amp;&amp;
  21. rm /usr/bin/{bunzip2,bzcat,bzip2} &amp;&amp;
  22. mv /usr/bin/{bzip2recover,bzless,bzmore} /bin &amp;&amp;
  23. ln -s bzip2 /bin/bunzip2 &amp;&amp;
  24. ln -s bzip2 /bin/bzcat</userinput></screen></para>
  25. </sect2>