phpize reported the following error under Mac 10.11:
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:
Use $ sudo ln -s / Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include /usr
ln: /usr/include: Even if sudo is used, an error is reported: Operation not permitted, this This is because the SIP feature introduced by Apple in OS There are two ways to solve this problem:
Solution: NO.1 (recommended)
Simple and convenient, execute the following method to install the command line tool and it will automatically configure the Unix development environment for you:
$ xcode-select --install
Solution: NO.2
Temporarily disable system protection:
Immediately press and hold command R ("R" letter key) when pressing the power button. Release the button after the Apple logo and progress bar appear in the middle, and wait for the installation interface to be restored and After the "OS Restart the computer.
The above introduces php phpize error reporting, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.