Installing zlib

July 7, 2025 ยท View on GitHub

TruffleRuby provides the zlib module but not the native zlib system library that the module uses.

Fedora-based: RHEL, Oracle Linux, etc

sudo dnf install zlib-devel

Debian-based: Ubuntu, etc

sudo apt-get install libz-dev

macOS

On macOS the system version can be used.

Contents

  1. 0.1Fedora-based: RHEL, Oracle Linux, etc
  2. 0.2Debian-based: Ubuntu, etc
  3. 0.3macOS