1, download Xdebug
2, enter the XDEBUG-2.4.0RC4 directory, run the phpize command,
2,google later said to install autoconf
Brew install autoconf
3, but no commands were found using brew, so install brew
Ruby -E "$ (Curl-fssl https://raw.github.com/Homebrew/homebrew/go/install)"
After the brew is installed, perform the brew install autoconf
4, after installation in the XDEBUG-2.4.0RC4 directory:
./configure
Make
5, this will report the following error
/users/slin/tools/xdebug-2.4.0rc4/xdebug.c:25:10: Fatal error: ' php.h ' file not
Found
#include "Php.h"
^
1 Error generated.
Make: * * * [Xdebug.lo] Error 1
6, find a half-day reason, is/usr under no include directory, this directory is sudo can not create, will report insufficient permissions, because this directory does not exist, so the phpize command is not normal execution, after a search, finally someone said installation command lines Tools (which can be installed in the console using the Xcode-select--install command) can be resolved after I install it and find that the Include directory appears under/USER, perform make normal, perform phpize properly, and install successfully
Mac+php+xdebug