zlib.xml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. <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. <para>Prepare Zlib for compilation:</para>
  20. <screen><userinput>./configure --prefix=/usr --shared --libdir=/lib</userinput></screen>
  21. <para>Compile the package:</para>
  22. <screen><userinput>make</userinput></screen>
  23. <para>To test the results, issue:
  24. <userinput>make check</userinput>.</para>
  25. <para>Install the shared library:</para>
  26. <screen><userinput>make install</userinput></screen>
  27. <para>Now we will remove the old, .so files in /lib and relink them into /usr/lib.</para>
  28. <screen><userinput>rm /lib/libz.so
  29. ln -sf ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen>
  30. <para>Now also build the non-shared (static) library:</para>
  31. <screen><userinput>make clean
  32. ./configure --prefix=/usr
  33. make</userinput></screen>
  34. <para>To again test the results, issue:
  35. <userinput>make check</userinput>.</para>
  36. <para>Install the static library:</para>
  37. <screen><userinput>make install</userinput></screen>
  38. <para>And fix the permissions on the static library:</para>
  39. <screen><userinput>chmod 644 /usr/lib/libz.a</userinput></screen>
  40. </sect2>
  41. <sect2 id="contents-zlib" role="content"><title>Contents of Zlib</title>
  42. <para>See testing</para>
  43. </sect2>
  44. </sect1>