Ticket #2630: zlib-update.patch

File zlib-update.patch, 1.6 KB (added by chris@…, 15 years ago)
  • trunk/BOOK/chapter06/zlib.xml

     
    4141  <sect2 role="installation">
    4242    <title>Installation of Zlib</title>
    4343
    44     <para>Prepare Zlib for building the dynamic library:</para>
     44    <para>Prepare Zlib for compilation:</para>
    4545
    46 <screen><userinput remap="configure">./configure --prefix=/usr --libdir=/lib</userinput></screen>
     46<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
    4747
    4848    <para>Compile the package:</para>
    4949
     
    5353
    5454<screen><userinput remap="test">make check</userinput></screen>
    5555
    56     <para>Install the shared library:</para>
     56    <para>Install the package:</para>
    5757
    5858<screen><userinput remap="install">make install</userinput></screen>
    5959
    60     <para>The previous command installed a <filename
    61     class="extension">.so</filename> file in <filename
    62     class="directory">/lib</filename>. We will remove it and relink it into
    63     <filename class="directory">/usr/lib</filename>:</para>
     60    <para>The shared library needs to be moved to
     61    <filename class="directory">/lib</filename>, and as a result the
     62    <filename class="extension">.so</filename> file in
     63    <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
    6464
    65 <screen><userinput remap="install">rm -v /lib/libz.so
     65<screen><userinput remap="install">mv -v /usr/lib/libz.so.* /lib
    6666ln -sfv ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen>
    6767
    6868  </sect2>