Mac+php+xdebug

Source: Internet
Author: User

1, download Xdebug

2, enter the XDEBUG-2.4.0RC4 directory, run the phpize command,

2,google later said to install autoconf

Brew install autoconf

3, but no commands were found using brew, so install brew

Ruby -E "$ (Curl-fssl https://raw.github.com/Homebrew/homebrew/go/install)"

After the brew is installed, perform the brew install autoconf

4, after installation in the XDEBUG-2.4.0RC4 directory:

./configure

Make

5, this will report the following error

/users/slin/tools/xdebug-2.4.0rc4/xdebug.c:25:10: Fatal error: ' php.h ' file not

Found

#include "Php.h"

^

1 Error generated.

Make: * * * [Xdebug.lo] Error 1

6, find a half-day reason, is/usr under no include directory, this directory is sudo can not create, will report insufficient permissions, because this directory does not exist, so the phpize command is not normal execution, after a search, finally someone said installation command lines Tools (which can be installed in the console using the Xcode-select--install command) can be resolved after I install it and find that the Include directory appears under/USER, perform make normal, perform phpize properly, and install successfully

Mac+php+xdebug

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.