Intro  Base  More  Read  Use  Last 30  60  90  All Articles  RSS


Intro

Base

More

Read

Use

Last:
30


60

90

All
Days

Base: zlib-1.1.4   Print


Base Nav: first previous next last All Tab 2 spacerspacer
Source code is available here.

Run these commands:

cd /sources/ &&
rm -rf zlib-1.1.4 &&
tar -xjf zlib-1.1.4.tar.bz2 &&
cd zlib-1.1.4 &&
CFLAGS="$CFLAGS -fPIC" \
    ./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.* /lib &&
cp zlib.3 /usr/share/man/man3

The output should look something like this:

Checking for gcc...
Checking for shared library support...
Building shared library libz.so.1.1.4 with gcc.
Checking for unistd.h... Yes.
Checking for errno.h...	 Yes.
Checking for mmap support... Yes.
gcc -fPIC -DHAVE_UNISTD_H -DUSE_MMAP   -c -o example.o example.c
gcc -fPIC -DHAVE_UNISTD_H -DUSE_MMAP   -c -o adler32.o adler32.c
.
.
.
chmod 644 /usr/include/zlib.h /usr/include/zconf.h
cp libz.so.1.1.4 libz.a /usr/lib
cd /usr/lib; chmod 755 libz.so.1.1.4 libz.a
cd /usr/lib; if test -f libz.so.1.1.4; then \
  rm -f libz.so libz.so.1; \
  ln -s libz.so.1.1.4 libz.so; \
  ln -s libz.so.1.1.4 libz.so.1; \
  (ldconfig || true)  >/dev/null 2>&1; \
fi


~~~
Please read our Terms of Use
The Mountain Climbing Journal filesystem has borrowed heavily from various pieces of Linux From Scratch.

Copyright 2006-2008 NoNIC.org

Created by:
MCJ
MCJ CMS