zlib-inst.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Zlib</title>
  4. <para>Prepare Zlib to be compiled:</para>
  5. <para><screen><userinput>CFLAGS="$CFLAGS -fPIC" \
  6. &nbsp;&nbsp;&nbsp;&nbsp;./configure --prefix=/usr --shared</userinput></screen></para>
  7. <para>The <emphasis>-fPIC</emphasis> flag helps to assure
  8. quality in the dynamic zlib library.</para>
  9. <para>Some packages expect a static zlib library to be present
  10. on the system. To satisfy those programs, compile both the
  11. shared and static libraries:</para>
  12. <para><screen><userinput>make LIBS="libz.so.1.1.4 libz.a"</userinput></screen></para>
  13. <para>Install the libraries:</para>
  14. <para><screen><userinput>make LIBS="libz.so.1.1.4 libz.a" install</userinput></screen></para>
  15. <para>The shared zlib library should be installed in the
  16. <filename>/lib</filename> directory. That way, in the event
  17. that you must boot without the <filename>/usr</filename>
  18. directory, vital system programs will still have access to
  19. the library:</para>
  20. <para><screen><userinput>mv /usr/lib/libz.so.* /lib</userinput></screen></para>
  21. <para>The <filename>/usr/lib/libz.so</filename> symlink is
  22. linked to a file which no longer exists, because we moved
  23. it. Create a symbolic link to the new location of the
  24. library:</para>
  25. <para><screen><userinput>ln -sf ../../lib/libz.so.1 /usr/lib/libz.so</userinput></screen></para>
  26. <para>Zlib does not install its manual page. Issue the
  27. following command to install this documentation:</para>
  28. <para><screen><userinput>cp zlib.3 /usr/share/man/man3</userinput></screen></para>
  29. </sect2>