zlib.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/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. <segmentedlist>
  12. <segtitle>&buildtime;</segtitle>
  13. <segtitle>&diskspace;</segtitle>
  14. <seglistitem><seg>0.1 SBU</seg><seg>1.5 MB</seg></seglistitem>
  15. </segmentedlist>
  16. </sect2>
  17. <sect2 role="installation">
  18. <title>Installation of Zlib</title>
  19. <!-- NEW set of commands-->
  20. <para>Prepare Zlib for compilation:</para>
  21. <screen><userinput>./configure --prefix=/usr --shared --libdir=/lib</userinput></screen>
  22. <para>Compile the package:</para>
  23. <screen><userinput>make</userinput></screen>
  24. <para>To test the results, issue:
  25. <userinput>make check</userinput>.</para>
  26. <para>Install the shared library:</para>
  27. <screen><userinput>make install</userinput></screen>
  28. <para>Now we will remove the old, .so files in /lib and relink them into /usr/lib.</para>
  29. <screen><userinput>rm /lib/libz.so
  30. ln -sf ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen>
  31. <para>Now also build the non-shared (static) library:</para>
  32. <screen><userinput>make clean
  33. ./configure --prefix=/usr
  34. make</userinput></screen>
  35. <para>To again test the results, issue:
  36. <userinput>make check</userinput>.</para>
  37. <para>Install the static library:</para>
  38. <screen><userinput>make install</userinput></screen>
  39. <para>And fix the permissions on the static library:</para>
  40. <screen><userinput>chmod 644 /usr/lib/libz.a</userinput></screen>
  41. </sect2>
  42. <sect2 id="contents-zlib" role="content"><title>Contents of Zlib</title>
  43. <para>See testing</para>
  44. </sect2>
  45. </sect1>