bzip2-inst.xml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Bzip2</title>
  4. <para>Compile the package:</para>
  5. <para><screen><userinput>
  6. make -f Makefile-libbz2_so &amp;&amp;
  7. make
  8. </userinput></screen></para>
  9. <para>And finish off installing the package:</para>
  10. <para><screen><userinput>
  11. make install</userinput></screen></para>
  12. <para>Copy the Bzip2 binary into the /bin directory, make some
  13. neccessary symbolic links and clean up.</para>
  14. <para><screen><userinput>
  15. cp bzip2-shared /bin/bzip2 &amp;&amp;
  16. cp -a libbz2.so* /lib &amp;&amp;
  17. ln -s ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so &amp;&amp;
  18. rm /usr/bin/{bunzip2,bzcat,bzip2} &amp;&amp;
  19. mv /usr/bin/{bzip2recover,bzless,bzmore} /bin &amp;&amp;
  20. ln -s bzip2 /bin/bunzip2 &amp;&amp;
  21. ln -s bzip2 /bin/bzcat
  22. </userinput></screen></para>
  23. </sect2>
  24. <sect2>
  25. <title>Command explanations</title>
  26. <para><userinput>make -f Makefile-libbz2_so:</userinput> This will cause bzip2
  27. to be built using a different Makefile file, in this case the
  28. Makefile-libbz2_so file, which creates a dynamic libbz2.so library and
  29. links the bzip2 utilities against it.</para>
  30. </sect2>