php.h No such file or directory

Yesterday , I tried to install mcrypt plugin for php in Mac OSX . I did the step by step from . However, I got the php.h: No such file or directory when running the /usr/bin/phpize

It didn’t describe the article also. I already installed the command line tool from Xcode. But the error was showing.

I miss the following step

xcode-select --install

I need to install xcode-select from terminal. It will take the time for installing. After installation completed , I can run phpize and there is no error anymore.

comments powered byDisqus