How do I find which phpize to use?

  1. Run: phpize (See the FAQ if you don't have phpize.

    As part of its output it should show:

    Configuring for:
    ...
    Zend Module Api No:      20121212
    Zend Extension Api No:   220121212
    

    If it does not, you are using the wrong phpize. Please follow this FAQ entry and skip the next step.


    Q: How do I find which phpize to use?
    A: Run: "phpize --help". This shows you the full path to phpize. This path should 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 should 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:
    1. /full/path/to/php/bin/phpize
    2. ./configure --with-php-config=/full/path/to/php/bin/php-config

    转载:http://xdebug.org/docs/faq#phpize

你可能感兴趣的:(How do I find which phpize to use?)