Home > Article > Backend Development > Why does Mac report an error when installing the php extension? How to solve it?
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.
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 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!