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?

小云云
Release: 2023-03-20 17:28:01
Original
1873 people have browsed 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.

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template