Met - Configure Error Package Requirements -zlib- Were Not

That’s the deeper wound.

If the configuration script still fails, verify that all other dependencies are met and compatible. configure error package requirements -zlib- were not met

macOS does not come with zlib development headers by default (though the runtime library is present in the system). You need to install via a package manager. That’s the deeper wound

If this command returns Package 'zlib' was not found , the development package is still missing or PKG_CONFIG_PATH is incorrect. verify that pkg-config can see zlib:

This is the single most important concept to grasp.

After installing the development package, verify that pkg-config can see zlib: