How to install phpize headers

Asked

Viewed 21 times

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 headers that are missing?

  • It depends a lot on where you downloaded and the process you did to download phpize, it seems to me that you stopped installing PHP first, or maybe you are using Mamp or Xampp, anyway I think this resolves http://stackoverflow.com/q/19531262/1518921

1 answer

1

In OSX to install the files from the /usr/include folder you need to install the Xcode command line tools in the run terminal:

$ xcode-select --install

Browser other questions tagged

You are not signed in. Login or sign up in order to post.