Home >Backend Development >PHP Tutorial >Why does Mac report an error when installing the php extension? How to solve it?

Why does Mac report an error when installing the php extension? How to solve it?

小云云
小云云Original
2018-03-03 11:16:231883browse

When the Mac system is upgraded to 10.9 (mavericks) and the php extension is installed, the following error is prompted when executing phpize:

Cannot find autoconf. Please check your autoconf installation

and the $PHP_AUTOCONF environment variable.

Solution

Install Homebrew first:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/ go/install)"

moved to:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


Then install autoconf:

brew install autoconf

Related recommendations:

Compile PHP extension Error "Unresolved external symbol zend_new_interned_string

PHP extension basic learning

PHP extension development-windows development environment setup detailed explanation

The above is the detailed content of Why does Mac report an error when installing the php extension? How to solve it?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn