Home  >  Article  >  Backend Development  >  When installing xdebug on mac, the following error message appears

When installing xdebug on mac, the following error message appears

WBOY
WBOYOriginal
2016-10-24 00:12:411587browse

The following error appears when installing xdebug on mac

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

Someone has mentioned it before, but I have an extra last line. I don’t know what to do. Please help!

Reply content:

The following error appears when installing xdebug on mac

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

Someone has mentioned it before, but I have an extra last line. I don’t know what to do. Please help!

I also encountered this problem, you can try it. Go to your terminal and type sudo xcodebuild -license. Then press Enter to open the protocol, scroll down with the space bar, enter agree at the end, and press Enter. Compile it again and try it. My problem is solved, wish you good luck.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn