Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failing to build xdebug

Tags:

php

build

xdebug

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 ?

like image 472
epsilones Avatar asked Jan 03 '13 02:01

epsilones


1 Answers

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 !

like image 138
epsilones Avatar answered Sep 25 '22 15:09

epsilones