8.9. Zlib-1.2.11

#### Linux From Scratch - Version 10.0

### Chapter 8. Installing Basic System Software

- Prev

  Glibc-2.32

- Next

  Bzip2-1.0.8

- Up
- Home

# 8.9. Zlib-1.2.11

The Zlib package contains compression and decompression routines used by some programs.

Approximate build time: less than 0.1 SBU
Required disk space: 5.1 MB

## 8.9.1. Installation of Zlib

Prepare Zlib for compilation:

    ./configure --prefix=/usr

Compile the package:

    make

To test the results, issue:

    make check

Install the package:

    make install

The shared library needs to be moved to `/lib`, and as a result the `.so` file in `/usr/lib` will need to be recreated:

    mv -v /usr/lib/libz.so.* /lib
    ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so

## 8.9.2. Contents of Zlib

Installed libraries: libz.{a,so}

### Short Descriptions

`libz` | Contains compression and decompression functions used by some programs

- Prev

  Glibc-2.32

- Next

  Bzip2-1.0.8

- Up
- Home