尝试在 osx 上安装,但运行命令时xdebug
出现错误error: make failed
pecl install xdebug
我需要做哪些更改才能xdebug
在 osx 上成功安装?
running: make
Makefile:230: warning: overriding commands for target `test'
Makefile:134: warning: ignoring old commands for target `test'
/bin/sh /private/tmp/pear/install/pear-build-rootAeyjJe/xdebug-3.0.1/libtool --mode=compile cc -I. -I/private/tmp/pear/install/xdebug -DPHP_ATOM_INC -I/private/tmp/pear/install/pear-build-rootAeyjJe/xdebug-3.0.1/include -I/private/tmp/pear/install/pear-build-rootAeyjJe/xdebug-3.0.1/main -I/private/tmp/pear/install/xdebug -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/private/tmp/pear/install/xdebug/src -I/private/tmp/pear/install/pear-build-rootAeyjJe/xdebug-3.0.1/src -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/install/xdebug/xdebug.c -o xdebug.lo
mkdir .libs
cc -I. -I/private/tmp/pear/install/xdebug -DPHP_ATOM_INC -I/private/tmp/pear/install/pear-build-rootAeyjJe/xdebug-3.0.1/include -I/private/tmp/pear/install/pear-build-rootAeyjJe/xdebug-3.0.1/main -I/private/tmp/pear/install/xdebug -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/private/tmp/pear/install/xdebug/src -I/private/tmp/pear/install/pear-build-rootAeyjJe/xdebug-3.0.1/src -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/install/xdebug/xdebug.c -fno-common -DPIC -o .libs/xdebug.o
/private/tmp/pear/install/xdebug/xdebug.c:25:10: fatal error: 'php.h' file not found
#include "php.h"
^~~~~~~
1 error generated.
make: *** [xdebug.lo] Error 1
ERROR: `make' failed