How to install phpize headers

0

When I use phpize in OSX 10.12.4, I get the following error:

$ 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:  

How to install the missing headers?

    
asked by anonymous 18.05.2017 / 19:55

1 answer

1

On OSX to install the files in the / usr / include folder you need to install the Xcode command line tools, on the terminal run:

$ xcode-select --install
    
18.05.2017 / 22:00