cvs commit: LFS/BOOK/chapter06 zlib-inst.xml

Greg Schafer gschafer at zip.com.au
Sat Sep 21 16:32:49 PDT 2002


On Sat, Sep 21, 2002 at 04:23:02PM -0700, timothy at linuxfromscratch.org wrote:
>   --- zlib-inst.xml	4 Aug 2002 14:59:31 -0000	1.1
>   +++ zlib-inst.xml	21 Sep 2002 23:23:01 -0000	1.2
>   @@ -3,7 +3,7 @@
>    
>    <para>Install Zlib by running the following commands:</para>
>    
>   -<para><screen><userinput>./configure --prefix=/usr --shared &&
>   +<para><screen><userinput>./configure --prefix=/usr --libdir=/lib --shared &&
>    make LIBS="libz.so.1.1.4 libz.a" &&
>    make LIBS="libz.so.1.1.4 libz.a" install &&
>    cp zlib.3 /usr/share/man/man3</userinput></screen></para>

Timothy, that doesn't look right at all. In fact it looks broken :-/

You'll end up with the static *.a lib in /lib (should be /usr/lib)
You'll also have the *.so symlink in /lib (it also needs to be in /usr/lib)

You need something like this:-

./configure --prefix=/usr --shared &&
make LIBS="libz.so.1.1.4 libz.a" &&
make LIBS="libz.so.1.1.4 libz.a" install &&
mv /usr/lib/libz.so.1* /lib &&
ln -s ../../lib/libz.so.1 /usr/lib/libz.so &&
cp zlib.3 /usr/share/man/man3
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-book' in the subject header of the message



More information about the lfs-book mailing list