zlib.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-zlib" xreflabel="Zlib" role="wrap">
  7. <title>Zlib-&zlib-version;</title>
  8. <?dbhtml filename="zlib.html"?>
  9. <indexterm zone="ch-system-zlib"><primary sortas="a-Zlib">Zlib</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Zlib package contains compression and un-compression routines used by
  12. some programs.</para>
  13. <segmentedlist>
  14. <segtitle>&buildtime;</segtitle>
  15. <segtitle>&diskspace;</segtitle>
  16. <seglistitem><seg>0.1 SBU</seg><seg>1.5 MB</seg></seglistitem>
  17. </segmentedlist>
  18. <segmentedlist>
  19. <segtitle>Zlib installation depends on</segtitle>
  20. <seglistitem><seg>Binutils, Coreutils, GCC, Glibc, Make, Sed</seg></seglistitem>
  21. </segmentedlist>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of Zlib</title>
  25. <note><para>Zlib is known to build its shared library incorrectly if CFLAGS is
  26. specified in the environment. If you are using your own CFLAGS variable, be
  27. sure to add the <parameter>-fPIC</parameter> directive to your CFLAGS for the
  28. duration of the below <command>configure</command> command, then remove it
  29. afterwards.</para></note>
  30. <para>Prepare Zlib for compilation:</para>
  31. <screen><userinput>./configure --prefix=/usr --shared --libdir=/lib</userinput></screen>
  32. <para>Compile the package:</para>
  33. <screen><userinput>make</userinput></screen>
  34. <para>To test the results, issue:
  35. <userinput>make check</userinput>.</para>
  36. <para>Install the shared library:</para>
  37. <screen><userinput>make install</userinput></screen>
  38. <para>Now also build the non-shared (static) library:</para>
  39. <screen><userinput>make clean
  40. ./configure --prefix=/usr
  41. make</userinput></screen>
  42. <para>To again test the results, issue:
  43. <userinput>make check</userinput>.</para>
  44. <para>Install the static library:</para>
  45. <screen><userinput>make install</userinput></screen>
  46. <para>And fix the permissions on the static library:</para>
  47. <screen><userinput>chmod 644 /usr/lib/libz.a</userinput></screen>
  48. </sect2>
  49. <sect2 id="contents-zlib" role="content"><title>Contents of Zlib</title>
  50. <segmentedlist>
  51. <segtitle>Installed libraries</segtitle>
  52. <seglistitem><seg>libz[a,so]</seg></seglistitem>
  53. </segmentedlist>
  54. <variablelist><title>Short description</title>
  55. <varlistentry id="libz">
  56. <term><filename class="libraryfile">libz*</filename></term>
  57. <listitem>
  58. <indexterm zone="ch-system-zlib libz"><primary sortas="c-libz*">libz*</primary></indexterm>
  59. <para>contains compression and un-compression
  60. functions used by some programs.</para>
  61. </listitem>
  62. </varlistentry>
  63. </variablelist>
  64. </sect2>
  65. </sect1>