I am having trouble creating / installing XDebug on Mac OSX using MAMP.
I have searched the Internet so far, and for now I am stuck on the XDebug part of the “Installation Wizard” that tells me “Run: phpize” in the source code that I downloaded.
When I started phpize , I get the following message:
new-host-2:xdebug-2.2.0 Dima$ phpize 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: Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.
If I do a which phpize , I get:
new-host-2:xdebug-2.2.0 Dima$ which phpize /usr/bin/phpize
This is not the version I want to use, I want to use the installed version of MAMP phpize , I assume, since I want to install XDebug on the PHP version of MAMP. This is perplexing because I added the MAMP-specific bin path for my .bash_profile to the $PATH variable already.
If I run echo $PATH , I get:
new-host-2:xdebug-2.2.0 Dima$ echo $PATH /opt/local/bin:/opt/local/sbin:/Applications/MAMP/bin/php/php5.4.3/bin:/Users/Dima/.rvm/gems/ruby-1.9.2-p290/bin:/Users/Dima/.rvm/gems/ ruby-1.9.2-p290@global /bin:/Users/Dima/.rvm/rubies/ruby-1.9.2-p290/bin:/Users/Dima/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
The specific MAMP PHP path appears in front of '/ usr / bin'. The next thing I tried is to run the MAMP phpize specification, providing it all the way manually:
new-host-2:xdebug-2.2.0 Dima$ /Applications/MAMP/bin/php/php5.4.3/bin/phpize -bash: /Applications/MAMP/bin/php/php5.4.3/bin/phpize: Permission denied
Now I checked the permissions of these files in the Finder, and it shows that I have full permission to read and write files from this folder. I lost a little. Any help would be greatly appreciated. I can post more information if it would be helpful to diagnose this problem.
Dmitry Samuylov
source share