mac上安装xdebug出现下面的报错
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:  
autom4te: need GNU m4 1.4 or later: /usr/bin/m4
以前也有人提过 但是我多了最后一行 不知道怎么办 求帮助!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
我也遇到了这个问题,你可以试一下。到你的终端输入 sudo xcodebuild -license。然后回车打开协议,空格键一直往下翻,到最后输入agree,然后回车。再来编译一下,试试。我的问题解决了,祝你好运.
mac上还是用homebrew安装吧,会省很多事,安装卸载升级都很方便