🌐
MacPorts
ports.macports.org › port › libzip
Install libzip on macOS with MacPorts
To install libzip, run the following command in macOS terminal (Applications->Utilities->Terminal)
Software library for reading, creating, and modifying zip archives
Appveyor Build status
libzip is an open-source library for handling zip archives. It is written in portable C and can thus be used on multiple operating systems. It is based on zlib. It is used … Wikipedia
Factsheet
libzip
Developers Dieter Baron, Thomas Klausner
Stable release 1.11.4
/ 23 May 2025; 12 months ago (23 May 2025)
Factsheet
libzip
Developers Dieter Baron, Thomas Klausner
Stable release 1.11.4
/ 23 May 2025; 12 months ago (23 May 2025)
🌐
Homebrew
formulae.brew.sh › formula › libzip
Homebrew Formulae: libzip
brew install libzip · C library for reading, creating, and modifying zip archives · https://libzip.org/ License: BSD-3-Clause · Development: Pull requests · Formula JSON API: /api/formula/libzip.json · Formula code: libzip.rb on GitHub ...
🌐
Libzip
libzip.org › INSTALL
INSTALL · libzip
Apple’s CommonCrypto (available on macOS and iOS) ... OpenSSL >= 1.0. ... If you don’t want a library even if it is installed, you can pass -DENABLE_<LIBRARY>=OFF to cmake, where <LIBRARY> is one of COMMONCRYPTO, GNUTLS, MBEDTLS, or OPENSSL. For running the tests, you need to have Python and nihtest installed. ... DOCUMENTATION_FORMAT: choose one of man, mdoc, and html for the installed documentation (default: decided by cmake depending on available tools) LIBZIP_DO_INSTALL: If you include libzip as a subproject, link it statically and do not want to let it install its files, set this variable to OFF.
🌐
GitHub
github.com › nih-at › libzip › blob › main › INSTALL.md
libzip/INSTALL.md at main · nih-at/libzip
If they are not found, the ... On Linux, you can usually install them via your package manager. On macOS, you can use Homebrew or Mac Ports....
Author   nih-at
🌐
Libzip
libzip.org
libzip - libzip
Most Linux and other Unix distributions include libzip in their package distributions, it is usually called libzip or libzip-dev. On macOS, it is included in both Homebrew and Mac Ports. On Windows, it is in vcpkg. A list of available packages can be found on Repology. For building and installing libzip from source, see the build instructions.
🌐
MacPorts
ports.macports.org › port › libzzip
Install libzzip on macOS with MacPorts
To install libzzip, run the following command in macOS terminal (Applications->Utilities->Terminal)
🌐
GitHub
github.com › nih-at › libzip
GitHub - nih-at/libzip: A C library for reading, creating, and modifying zip archives. · GitHub
Most Linux and other Unix distributions include libzip in their package distributions, it is usually called libzip or libzip-dev. On macOS, it is included in both Homebrew and Mac Ports. On Windows, it is in vcpkg. A list of available packages can be found on Repology. For building and installing libzip from source, see the INSTALL.md file.
Starred by 1K users
Forked by 314 users
Languages   C 90.3% | CMake 9.1%
Find elsewhere
🌐
GitHub
github.com › ArboreusSystems › arboreus_wiki_public › blob › master › libzip › build_static_libzip_macos.md
arboreus_wiki_public/libzip/build_static_libzip_macos.md at master · ArboreusSystems/arboreus_wiki_public
Libzip version: 1.5.1, Target OS: MacOS High Sierra · Installed dependency: OpenSSL: /usr/lib/libcrypto.dylib (found version "1.0.2o") ZLIB: /usr/lib/libz.dylib (found version "1.2.11") BZip2: /usr/lib/libbz2.dylib (found version "1.0.6") For building shared/static libzip you need: To be installed all libraries that required above ·
Author   ArboreusSystems
🌐
MacPorts
ports.macports.org › port › libzip › details
libzip | MacPorts
libzip is a C library for reading, creating, and modifying zip archives. Files can be added from data buffers, files, or compressed data copied directly from other zip archives. Changes made without closing the archive can be reverted. + Show more Version: 1.11.4 License: BSD GitHub · × · Please wait while tickets are being fetched from Trac. Close · Details · Builds · Installation Stats ·
🌐
Homebrew
formulae.brew.sh › formula › libzzip
libzzip — Homebrew Formulae
Library providing read access on ZIP-archives · https://github.com/gdraheim/zziplib
🌐
Stack Overflow
stackoverflow.com › questions › 68020269 › how-to-install-mamp-php-zip-extension-on-masos-big-sur-m1-arch
homebrew - How to install MAMP PHP zip extension on masOS Big Sur - M1 arch? - Stack Overflow
I'm trying to install php zip module on my new Macbook M1, by using: pecl install zip After a while i'm getting this error: configure: error: Please reinstall the libzip distribution ERROR: `/priv...
Top answer
1 of 1
3

Good summary. I did not need 2 and 3.

Then for the signature

11. You need to start XCode and add an account.

Add an account to XCode

Download a certificate

12. In terminal check with certtool y for your new Signing Key. It's named like:

Common Name     : Apple Development:
[email protected] (xxxxxxxx)

Still with your user in the terminal sign the file (move it back if not anymore in the build folder, otherwise you end with a permission error)

codesign -f -s "Apple Development: [email protected]" /usr/local/lib/php/extensions/zip.so

Move it to the target folder, run php --version and you end with:

PHP Warning: PHP Startup: Unable to load dynamic library 'zip' (tried: /usr/local/lib/php/extensions/zip (dlopen(/usr/local/lib/php/extensions/zip, 0x0009): dlopen(): file not found: /usr/local/lib/php/extensions/zip), /usr/local/lib/php/extensions/zip.so (dlopen(/usr/local/lib/php/extensions/zip.so, 0x0009): code signature in (/usr/local/lib/php/extensions/zip.so) not valid for use in process: mapping process is a platform binary, but mapped file is not)) in Unknown on line 0 PHP 7.3.11 (cli) (built: Feb 29 2020 02:50:36) ( NTS )

Ok, i looked around the internet (insightful resurce), and the bits i found paint a dark image. In short: It's not possible anymore with Mac Os Catalina.

The errormessage tells it too. The Php environment is signed as system component (platform binary) and is installed by default. Mac Os Catalina enforces that platform binaries only load code which is also a platform binary. Which one can not do, because you are not Apple.

Leaving two possible options. Disabling the whole Signature enforcement stystemwide whic is a bad idea. Or setup a replacement Php completely selfbuild or with homebrew.

🌐
Mac App Store
macappstore.org › home › install minizip on mac osx
Install minizip on Mac OSX - Mac App Store
June 12, 2022 - Install quazip on Mac OSX · Install libzip on Mac OSX · Install libzzip on Mac OSX · Install advancecomp on Mac OSX · Install fcrackzip on Mac OSX · Install p7zip on Mac OSX · Install ZTerm on Mac OSX · Install Zotero on Mac OSX · Install Zooom/2 on Mac OSX ·
🌐
Fossies
fossies.org › linux › libzip › INSTALL.md
libzip: INSTALL.md | Fossies
May 23, 2025 - Apple’s CommonCrypto (available on macOS and iOS) ... OpenSSL >= 1.0. ... If you don’t want a library even if it is installed, you can pass -DENABLE_<LIBRARY>=OFF to cmake, where <LIBRARY> is one of COMMONCRYPTO, GNUTLS, MBEDTLS, or OPENSSL. For running the tests, you need to have Python and nihtest installed. ... DOCUMENTATION_FORMAT: choose one of man, mdoc, and html for the installed documentation (default: decided by cmake depending on available tools) LIBZIP_DO_INSTALL: If you include libzip as a subproject, link it statically and do not want to let it install its files, set this variable to OFF.
🌐
Apple Community
discussions.apple.com › thread › 250734433
php 7.3.8 zip extension missing From macO… - Apple Community
Once you have CMake installed, you can build and install libzip using the simple 6-step CMake build procedure. So simple! Now go back to your php source for the zip module and build that. I’ll save you some effort and suggest that you use the following configure line: CFLAGS="-I/Library/...