🌐
MacPorts
ports.macports.org › port › libzip
Install libzip on macOS with 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. ... If not done already, install MacPorts.
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)
🌐
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.
🌐
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.
Starred by 1K users
Forked by 314 users
Languages   C 90.3% | CMake 9.1%
🌐
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.
🌐
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 · Bottle (binary package) installation support provided for: Current versions: Revision: 1 ·
🌐
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.
Find elsewhere
🌐
GitHub
github.com › nih-at › libzip › blob › main › INSTALL.md
libzip/INSTALL.md at main · nih-at/libzip
If they are not found, the corresponding features will be disabled, but libzip will still build and work. How to install the dependencies depends on your operating system. On Linux, you can usually install them via your package manager. On macOS, you can use Homebrew or Mac Ports.
Author   nih-at
🌐
GitHub
github.com › winlibs › libzip
GitHub - winlibs/libzip: 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.
Starred by 10 users
Forked by 2 users
Languages   C 89.8% | CMake 9.5%
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.

🌐
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)
🌐
Conan.io
conan.io › center › recipes › libzip
libzip - Conan 2.0: C and C++ Open Source Package Manager
macOS Apple Silicon · Windows ARM64 · Add the following line to your conanfile.txt: [requires] libzip/1.11.4 ·
🌐
GitHub
github.com › gerryyang › mac-utils › tree › master › tools › libzip › src
mac-utils/tools/libzip/src at master · gerryyang/mac-utils
This is a toolbox on Mac OSX or Linux. Contribute to gerryyang/mac-utils development by creating an account on GitHub.
Author   gerryyang
🌐
Homebrew
formulae.brew.sh › formula › libzzip
libzzip — Homebrew Formulae
Library providing read access on ZIP-archives · https://github.com/gdraheim/zziplib
🌐
Anaconda.org
anaconda.org › conda-forge › libzip
libzip - conda-forge | Anaconda.org
macOS-64 · Unsupported Platforms · win-32 Last supported version: 1.5.1 · Home https://libzip.org/ GitHub Repository https://github.com/nih-at/libzip ·