Home > Backend Development > PHP Tutorial > Why is `phpize` throwing a \'config.m4 not found\' error on Debian/Ubuntu?

Why is `phpize` throwing a \'config.m4 not found\' error on Debian/Ubuntu?

Susan Sarandon
Release: 2024-10-29 13:33:29
Original
637 people have browsed it

  Why is `phpize` throwing a

Installing and Running phpize on Debian/Ubuntu

Issue:

While attempting to install ffmpeg as a PHP extension, the user encounters an error when running phpize. The error indicates that config.m4 cannot be found.

Solution:

For recent versions of Debian/Ubuntu (Debian 9 or Ubuntu 16.04 ), the solution is to install the php-dev dependency package:

sudo apt install php-dev
Copy after login

This will automatically install the correct version of php{x}-dev for your distribution.

Older Versions of Debian/Ubuntu:

For PHP 5, install the php5-dev package:

sudo apt-get install php5-dev
Copy after login

For PHP 7.x, install the php7.x-dev package:

sudo apt-get install php7.x-dev
Copy after login

RHEL/CentOS/yum:

On systems using yum, install the php-devel package:

yum install php-devel
Copy after login

Additional Notes:

  • Ensure that you are running phpize from the top-level directory of the module you are trying to install.
  • If you still experience issues, make sure that autoconf, automake, libtool, and m4 are installed.

The above is the detailed content of Why is `phpize` throwing a \'config.m4 not found\' error on Debian/Ubuntu?. For more information, please follow other related articles on the PHP Chinese website!

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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template