Installing xDebug on xampp on mac: phpize not working

Viewed 5086

I am using xampp5.6.15 on OS 10.11. I was following this instruction to install xDebug. My "tailored installation instruction" is as follows: enter image description here

In this instruction, it doesn't mention where to put the downloaded tgz file, so I just left it where it was in the downloads folder, after I ran phpize, the output is like this:

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.

I guess it is because the xdebug folder is not in the right place, I've tried moving it to xamppfiles/ and xamppfiles/modules/ and some other places but none of the works.

So what is wrong? Where should I place the folder?

4 Answers

I just was struggling with the same problem and got the below message when I tried to run phpize to install xdebug. The solution (and problem) in my case was that I just had not installed the XAMPP developer files! When you run the XAMPP installer, you can check or uncheck this option. If you did not originally check it, just run the installer again, it allows you to just add the developer files.

And just to be complete: I also had an issue with the wrong version of php / phpize (the older OSX version was used), so I also had to set the path to the XAMPP versions of php, phpize etc. are stored:

export PATH=/Applications/XAMPP/xamppfiles/bin/:$PATH

Afterwards, everything was fine, and I could just follow the steps the XDEBUG wizard gave me: https://xdebug.org/wizard.php

This was the original error message I got by runnin phpize:

grep: /Applications/XAMPP/xamppfiles/include/php/main/php.h: No such file or directory
grep: /Applications/XAMPP/xamppfiles/include/php/Zend/zend_modules.h: No such file or directory
grep: /Applications/XAMPP/xamppfiles/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:

Related