Problems encountered when installing Xdebug

Source: Internet
Author: User
Tags pear phpinfo
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.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.