When installing or upgrading PHP and crashing into this error that libz can not be found.
1 2 3 4 5 6 7 8 |
checking bundled sqlite3 library... yes checking for ZLIB support... yes checking if the location of ZLIB install directory is defined... no configure: error: Cannot find libz READ THIS: https://git.io/brew-troubleshooting If reporting this issue please do so at (not Homebrew/brew): https://github.com/Homebrew/homebrew-php/issues |
You can try to trigger Xcode to install the command line developer tools.
1 |
xcode-select --install |
Usually you can run into errors like this when freshly installed Xcode or upgraded Xcode lately.
It is advised to start Xcode after installation or an upgrade to install the latest components.