minizip from zlib-1.3.2

#### Supplemental Linux® From Scratch - Version 13.0

### Chapter 2. General Libraries

- Prev

  Mbed-TLS-3.6.5

- Next

  msgraph-0.3.4

- Up
- Home

# minizip from zlib-1.3.2

## Introduction to minizip

The minizip package provides a library for mini zip and unzip, based on Zlib.

- Download: https://zlib.net/fossils/zlib-1.3.2.tar.gz

## Installation of minizip

### Note

You must unpack the downloaded `zlib-1.3.2.tar.gz` tarball and navigate to the extracted source directory. This package is inside that source.

Install minizip by running the following commands:

    cd contrib/minizip &&

    sed -i 's/crypt.h/ints.h/' Makefile.am &&

    mv Makefile{,.orig} &&
    autoreconf -fi      &&

    ./configure --prefix=/usr --disable-static &&
    make

Now, as the `root` user:

    make install

## Command Explanations

sed -i 's/crypt.h/ints.h/' ...: This command both ensures that a needed header (`ints.h`) is installed and that another header (`crypt.h`) is not, as it conflicts with another header and can cause issues for other packages.

mv Makefile{,.orig}; autoconf -fi: These commands remove the pregenerated `Makefile` and generate a new one.

`--disable-static`: This switch prevents installation of static versions of the libraries.

## Contents

Installed Programs: None
Installed Libraries: libminizip
Installed Directories: /usr/include/minizip

### Short Descriptions

`libminizip` | contains mini zip and unzip functions

- Prev

  Mbed-TLS-3.6.5

- Next

  msgraph-0.3.4

- Up
- Home