I want to install Xdebug on Mac OS 10.11 xampp5.5.16, follow the steps on this page. After entering the information for Phpinfo (), the page prompts
Picture description
The hint does not say where to put the downloaded files, so I unzipped in the download directory, the 4th step to run Phpize, the return information in terminal is
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 the this script.
I think this may be Xdebug folder without lil bit place. I try to move it to xamppfiles/
and from xamppfiles/modules/
some other folders and execute Phpize, but return the same error message.
On the page there is a link to the FAQ that returns an error message, which is listed in the following information:
Q:How do I find which phpize?
A:run: "Phpize--help". This shows your full path to phpize. This path should is the same as where you have the CLI binary, "Php-config" and the "pear" and "pecl" binaries installed. If you run "php-config--version" It should show the same version of PHP so you ' re running. If it doesn ' t match up, and perhaps the wrong "phpize" binary was found on the path, you can run configure as follows:
/full/path/to/php/bin/phpize
./configure--with-php-config=/full/path/to/php/bin/php-config
But this I do not understand, my phpize--help return is/usr/bin, but I do not know the CLI binary and Php-config directory is exactly where, in the XAMPP directory can not find pear and pecl.
Although the use of PHP programming has a certain time, but because there are a lot of PHP concept is not very clear, so the basic installation has encountered so many problems, to seek expert guidance.
Reply content:
I want to install Xdebug on Mac OS 10.11 xampp5.5.16, follow the steps on this page. After entering the information for Phpinfo (), the page prompts
Picture description
The hint does not say where to put the downloaded files, so I unzipped in the download directory, the 4th step to run Phpize, the return information in terminal is
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 the this script.
I think this may be Xdebug folder without lil bit place. I try to move it to xamppfiles/
and from xamppfiles/modules/
some other folders and execute Phpize, but return the same error message.
On the page there is a link to the FAQ that returns an error message, which is listed in the following information:
Q:How do I find which phpize?
A:run: "Phpize--help". This shows your full path to phpize. This path should is the same as where you have the CLI binary, "Php-config" and the "pear" and "pecl" binaries installed. If you run "php-config--version" It should show the same version of PHP so you ' re running. If it doesn ' t match up, and perhaps the wrong "phpize" binary was found on the path, you can run configure as follows:
/full/path/to/php/bin/phpize
./configure--with-php-config=/full/path/to/php/bin/php-config
But this I do not understand, my phpize--help return is/usr/bin, but I do not know the CLI binary and Php-config directory is exactly where, in the XAMPP directory can not find pear and pecl.
Although the use of PHP programming has a certain time, but because there are a lot of PHP concept is not very clear, so the basic installation has encountered so many problems, to seek expert guidance.
You have to do this, first of all, the error prompt has been clearly told you the errors and the corresponding operation, prompting you to use Php-config automatic help to compile. Then you'll have to find it first.
Try the Find command, of course, if you have a Unix-like system, win wall it?
sudo find / -name "php-config"
But it's better to start with a word.
phpize
If there is any indication that something is wrong, the phpize is not in the directory of the environment variable, you have to use the above command to find out where it is and then execute it directly with the absolute path.
/oo/xx/phpize
Like this.
Use this command to pull out the two goods, with an absolute path you can follow the prompts to compile
./configure --with-php-config=这里填绝对路径
I wish you all this (-.-;)
1, you have to determine the location of the PHP installation, if you install through XAMPP, it is basically in the XAMPP installed folder inside.
2. If using a Mac, it is recommended to use brew to install Php,nginx and other popular services.