zlib.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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-system-zlib" role="wrap">
  8. <?dbhtml filename="zlib.html"?>
  9. <sect1info condition="script">
  10. <productname>zlib</productname>
  11. <productnumber>&zlib-version;</productnumber>
  12. <address>&zlib-url;</address>
  13. </sect1info>
  14. <title>Zlib-&zlib-version;</title>
  15. <indexterm zone="ch-system-zlib">
  16. <primary sortas="a-Zlib">Zlib</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Zlib package contains compression and decompression routines used by
  21. some programs.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&zlib-fin-sbu;</seg>
  27. <seg>&zlib-fin-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Zlib</title>
  33. <para>Prepare Zlib for compilation:</para>
  34. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  35. <para>Compile the package:</para>
  36. <screen><userinput remap="make">make</userinput></screen>
  37. <para>To test the results, issue:</para>
  38. <screen><userinput remap="test">make check</userinput></screen>
  39. <para>Install the package:</para>
  40. <screen><userinput remap="install">make install</userinput></screen>
  41. <para>The shared library needs to be moved to
  42. <filename class="directory">/lib</filename>, and as a result the
  43. <filename class="extension">.so</filename> file in
  44. <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
  45. <screen><userinput remap="install">mv -v /usr/lib/libz.so.* /lib
  46. ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so</userinput></screen>
  47. </sect2>
  48. <!-- - - - - - - - - - -->
  49. <!-- Multilib - 32bit -->
  50. <!-- - - - - - - - - - -->
  51. <sect2 arch="ml_32,ml_all" role="installation">
  52. <title>Installation of Zlib - 32bit</title>
  53. <para>Clean previous build:</para>
  54. <screen><userinput remap="pre">make distclean</userinput></screen>
  55. <para>Prepare Zlib for compilation:</para>
  56. <screen><userinput remap="configure">CC="gcc -m32" \
  57. ./configure --prefix=/usr \
  58. --libdir=&usr-lib-m32;</userinput></screen>
  59. <para>Compile the package:</para>
  60. <screen><userinput remap="make">make</userinput></screen>
  61. <para>Install the package:</para>
  62. <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
  63. cp -Rv DESTDIR&usr-lib-m32;/* &usr-lib-m32;
  64. rm -rf DESTDIR</userinput></screen>
  65. </sect2><!-- m32 -->
  66. <!-- - - - - - - - - - -->
  67. <!-- Multilib - x32bit -->
  68. <!-- - - - - - - - - - -->
  69. <sect2 arch="ml_x32,ml_all" role="installation">
  70. <title>Installation of Zlib - x32bit</title>
  71. <screen><userinput remap="pre">make distclean</userinput></screen>
  72. <para>Prepare Zlib for compilation:</para>
  73. <screen><userinput remap="configure">CC="gcc -mx32" \
  74. ./configure --prefix=/usr \
  75. --libdir=&usr-lib-mx32;</userinput></screen>
  76. <para>Compile the package:</para>
  77. <screen><userinput remap="make">make</userinput></screen>
  78. <para>Install the package:</para>
  79. <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
  80. cp -Rv DESTDIR&usr-lib-mx32;/* &usr-lib-mx32;
  81. rm -rf DESTDIR</userinput></screen>
  82. </sect2><!-- mx32 -->
  83. <sect2 id="contents-zlib" role="content">
  84. <title>Contents of Zlib</title>
  85. <segmentedlist>
  86. <segtitle>Installed libraries</segtitle>
  87. <seglistitem>
  88. <seg>libz.{a,so}</seg>
  89. </seglistitem>
  90. </segmentedlist>
  91. <variablelist>
  92. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  93. <?dbfo list-presentation="list"?>
  94. <?dbhtml list-presentation="table"?>
  95. <varlistentry id="libz">
  96. <term><filename class="libraryfile">libz</filename></term>
  97. <listitem>
  98. <para>Contains compression and decompression functions used by
  99. some programs</para>
  100. <indexterm zone="ch-system-zlib libz">
  101. <primary sortas="c-libz">libz</primary>
  102. </indexterm>
  103. </listitem>
  104. </varlistentry>
  105. </variablelist>
  106. </sect2>
  107. </sect1>