Appearance
configure: error: Please reinstall the libzip distribution
This error message is indicating that there is a problem with the libzip library that is preventing a program from being configured. The message is suggesting that reinstalling the libzip library may resolve the issue. Before trying to reinstall, it is important to check that the library is installed properly and that all dependencies are met. If the issue persists, you may want to check the documentation or seek support from the community of the software that is giving this error.
Resolution This error typically occurs when compiling PHP from source. Install the development package for your operating system:
Debian/Ubuntu
bash
sudo apt update
sudo apt install libzip-devRHEL/CentOS/Fedora
bash
sudo yum install libzip-devel
# For newer versions using DNF:
sudo dnf install libzip-develmacOS
bash
brew install libzipAfter installation, verify the library is available and re-run your configuration script:
bash
pkg-config --modversion libzip
./configure