Problems encountered during xDebug Installation

Source: Internet
Author: User
To install xDebug on xampp5.5.16 of MacOS10.11, follow the steps shown on this page. After entering the phpinfo () information, the prompt image description prompt does not indicate where to put the downloaded file, so I will decompress it in the download directory, proceed to step 2... to install xDebug on xampp5.5.16 of Mac OS 10.11, follow the steps shown on this page. After entering the phpinfo () information, the page prompts

Image Description

The prompt does not indicate where to put the downloaded file, so I decompress the file in the download directory and run phpize in step 1. The returned 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
Processing ing 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 think this may be because the xDebug folder is not properly placed. I tried to move itxamppfiles/Andxamppfiles/modules/Execute phpize in other folders, but return the same error message.

There is a FAQ link on the page when an error message is returned. Click it to include the following information:
Q: How do I find which phpize to use?
A: Run: "phpize -- help ". this shows you the full path to phpize. this path shoshould be 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 shocould show the same version of PHP that you're running. if it doesn' t match up, and perhaps the wrong "phpize" binary is 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 I don't quite understand this. My phpize -- help returns/usr/bin, but I don't know where the CLI binary and php-config directories are, pear and pecl cannot be found in the xampp directory.
Although PHP programming has been around for some time, many PHP concepts are still unclear, so the basic installation has encountered so many problems.

Reply content:

To install xDebug on xampp5.5.16 of Mac OS 10.11, follow the steps shown on this page. After entering the phpinfo () information, the page prompts

Image Description

The prompt does not indicate where to put the downloaded file, so I decompress the file in the download directory and run phpize in step 1. The returned 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
Processing ing 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 think this may be because the xDebug folder is not properly placed. I tried to move itxamppfiles/Andxamppfiles/modules/Execute phpize in other folders, but return the same error message.

There is a FAQ link on the page when an error message is returned. Click it to include the following information:
Q: How do I find which phpize to use?
A: Run: "phpize -- help ". this shows you the full path to phpize. this path shoshould be 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 shocould show the same version of PHP that you're running. if it doesn' t match up, and perhaps the wrong "phpize" binary is 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 I don't quite understand this. My phpize -- help returns/usr/bin, but I don't know where the CLI binary and php-config directories are, pear and pecl cannot be found in the xampp directory.
Although PHP programming has been around for some time, many PHP concepts are still unclear, so the basic installation has encountered so many problems.

You have to handle this issue. First, the error prompt clearly tells you the error and the corresponding operation, prompting you to use php-config to automatically compile the program. You have to find it first.
Try the find command. Of course, the premise is that you have to be in a unix-like system, right ?.

sudo find / -name "php-config"

But you 'd better start with one sentence.

phpize

If something is wrong, it means that phpize is not in the environment variable directory. You have to use the above command to find out where it is, and then run it directly in the absolute path.

/oo/xx/phpize

This is similar.
Use this command to pull out the two goods. With the absolute path, you can compile the goods as prompted.

./Configure -- with-php-config = enter the absolute path here.

I wish you a good time (-.-;)

1. You must first determine the php installation location. If you install xampp, it is basically in the xampp installation folder.

2. If mac is used, we recommend that you use brew to install common services such as php and nginx.

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.