$ phpize
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php /Zend/zend_extensions.h: No such file or directory
Configuring for :
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
When checking /usr/include
folder does not exist, presumably Xcode command line tools not installed completely
$ xcode-select --install
xcode-select: note: install requested for command line developer tools
Still /usr/include
folder is missing
$ csrutil status
System Integrity Protection status: disabled.
Xcode command line tools
Try installing it again :
$ xcode-select --install
xcode-select: error: command line tools are already installed...
Now the solution is
$ cd /Library/Developer/CommandLineTools/Packages/
$ open macOS_SDK_headers_for_macOS_10.14.pkg
After the installation is complete, check /usr/include
folder and all the files inside are back.
Now phpize
should work