bzip2.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-tools-bzip2" role="wrap">
  8. <?dbhtml filename="bzip2.html"?>
  9. <sect1info condition="script">
  10. <productname>bzip2</productname>
  11. <productnumber>&bzip2-version;</productnumber>
  12. <address>&bzip2-url;</address>
  13. </sect1info>
  14. <title>Bzip2-&bzip2-version;</title>
  15. <indexterm zone="ch-tools-bzip2">
  16. <primary sortas="a-Bzip2">Bzip2</primary>
  17. <secondary>tools</secondary>
  18. </indexterm>
  19. <sect2 role="package">
  20. <title/>
  21. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  22. href="../chapter06/bzip2.xml"
  23. xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
  24. <segmentedlist>
  25. <segtitle>&buildtime;</segtitle>
  26. <segtitle>&diskspace;</segtitle>
  27. <seglistitem>
  28. <seg>&bzip2-ch5-sbu;</seg>
  29. <seg>&bzip2-ch5-du;</seg>
  30. </seglistitem>
  31. </segmentedlist>
  32. </sect2>
  33. <sect2 role="installation">
  34. <title>Installation of Bzip2</title>
  35. <para>The Bzip2 package does not contain a <command>configure</command>
  36. script. There are two <filename>Makefile</filename>, one for the shared
  37. library, and the other for the static library. Since we need both, We
  38. do the compilation in two stages. First the shared library:</para>
  39. <screen><userinput remap="make">make -f Makefile-libbz2_so
  40. make clean</userinput></screen>
  41. <variablelist>
  42. <title>The meaning of the make parameter:</title>
  43. <varlistentry>
  44. <term><parameter>-f Makefile-libbz2_so</parameter></term>
  45. <listitem>
  46. <para>This will cause Bzip2 to be built using a different
  47. <filename>Makefile</filename> file, in this case the
  48. <filename>Makefile-libbz2_so</filename> file, which creates a dynamic
  49. <filename class="libraryfile">libbz2.so</filename> library and links
  50. the Bzip2 utilities against it.</para>
  51. </listitem>
  52. </varlistentry>
  53. </variablelist>
  54. <para>Compile and test the package with:</para>
  55. <screen><userinput remap="make">make</userinput></screen>
  56. <para>Install the package:</para>
  57. <screen><userinput remap="install">make PREFIX=/tools install
  58. cp -v bzip2-shared /tools/bin/bzip2
  59. cp -av libbz2.so* /tools/lib
  60. ln -sv libbz2.so.1.0 /tools/lib/libbz2.so</userinput></screen>
  61. </sect2>
  62. <sect2 role="content">
  63. <title/>
  64. <para>Details on this package are located in
  65. <xref linkend="contents-bzip2" role="."/></para>
  66. </sect2>
  67. </sect1>