Ticket #2630: zlib-update.patch
File zlib-update.patch, 1.6 KB (added by , 15 years ago) |
---|
-
trunk/BOOK/chapter06/zlib.xml
41 41 <sect2 role="installation"> 42 42 <title>Installation of Zlib</title> 43 43 44 <para>Prepare Zlib for building the dynamic library:</para>44 <para>Prepare Zlib for compilation:</para> 45 45 46 <screen><userinput remap="configure">./configure --prefix=/usr --libdir=/lib</userinput></screen>46 <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen> 47 47 48 48 <para>Compile the package:</para> 49 49 … … 53 53 54 54 <screen><userinput remap="test">make check</userinput></screen> 55 55 56 <para>Install the shared library:</para>56 <para>Install the package:</para> 57 57 58 58 <screen><userinput remap="install">make install</userinput></screen> 59 59 60 <para>The previous command installed a <filename61 class="extension">.so</filename> file in <filename62 class="directory">/lib</filename>. We will remove it and relink it into63 <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> 64 64 65 <screen><userinput remap="install"> rm -v /lib/libz.so65 <screen><userinput remap="install">mv -v /usr/lib/libz.so.* /lib 66 66 ln -sfv ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen> 67 67 68 68 </sect2>