I am trying to install xdebug with MAMP on my Mac. I downloaded xdebug-2.2.1.tgz
and followed the xdebug wizard to run phpize. I ran make
then I was told of some missing files in /Applications/MAMP/bin/php/php5.4.4/include/php/Zend/*
. So, I googled that and I saw I had to download php5.4.4 and then push some files in a new 'include' directory I created in /Applications/MAMP/bin/php/php5.4.4/include/php
. But when I try to build again, I have this message :
/Applications/MAMP/bin/php/php5.4.4/include/php/Zend/zend.h:51:11: fatal error:
'zend_config.h' file not found
# include <zend_config.h>
What should I do ? Where can I get this file ?
I finally managed to install xdebug. In fact, I had to install Xcode developer tool and then copy the files from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/php into /Applications/MAMP/bin/php/php5.4.4/include
and then it worked !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With