Mac Phpize Issues

Source: Internet
Author: User
This is now the Phpize version information:

localhost:~ dddd$ Phpize-v
Configuring for:
PHP Api version:20100412
Zend Module Api no:20100525
Zend Extension Api no:220100525

This version of PHP is:

localhost:~ dddd$ Php-i
PHP API = 20121113
PHP Extension = 20121212
Zend Extension = 220121212

This is my current MAC situation, two versions do not correspond. You cannot compile other PHP modules now.
Does it happen again? How to solve?

Reply content:

This is now the Phpize version information:

localhost:~ dddd$ Phpize-v
Configuring for:
PHP Api version:20100412
Zend Module Api no:20100525
Zend Extension Api no:220100525

This version of PHP is:

localhost:~ dddd$ Php-i
PHP API = 20121113
PHP Extension = 20121212
Zend Extension = 220121212

This is my current MAC situation, two versions do not correspond. You cannot compile other PHP modules now.
Does it happen again? How to solve?

which phpwhich phpizeecho $PATH

Generally because which phpize the directory in the $PATH than which php before, or you compile the installation of PHP for some reason only to $path PHP without adding phpize

Phpbrew is a practical tool for installing different versions of PHP and various extensions on your Mac, so here's a recommendation

There are multiple versions of PHP in the system, as long as the path is managed well. Mcfog's answer has been very good.

  • 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.