Yesterday , I tried to install mcrypt plugin for php in Mac OSX . I did the step by step fromhttp://www.coolestguidesontheplanet.com/install-mcrypt-php-mac-osx-10-9-mavericks-development-server/ . 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.
转自:http://www.saturngod.net/articles/php-h-no-such-file-or-directory/