Building zlib 1.2.3

Building a Web Server, for Linux

Requirements

None

Download

Our Configuration

Configuration Options

Displays a list of configuration options...

.../zlib-1.2.3]# ./configure -h

Build Instructions

Note that zlib library files are placed into /usr/local/lib and zlib header files are placed into /usr/local/include, by default.

Build Shared (and static) Libraries
Extra Files
[sanity check] Libs and Headers

/usr/local/lib should now contain...

/usr/local/include should now contain...

[Optional] Instructions for non-standard placement of zlib

Create the directory that will contain zlib...

.../zlib-1.2.3]# mkdir /usr/local/zlib

Follow the given procedure above, except...

.../zlib-1.2.3]# ./configure --prefix=/usr/local/zlib

Update the Run-Time Linker

/etc/ld.so.cache will need to be updated with the new zlib shared lib: libz.so.1.2.3

For standard zlib installation...

If zlib was installed with a prefix...