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
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
For PHP 7.x, install the php7.x-dev package:
sudo apt-get install php7.x-dev
RHEL/CentOS/yum:
On systems using yum, install the php-devel package:
yum install php-devel
Additional Notes:
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!