Pecl phpize失败,找不到config.m4


Pecl phpize failed config.m4 not found

我正在尝试安装Pecl扩展(SCA_SDO),但当我运行以下命令pecl install SCA_SDO时,我会得到错误:

downloading SCA_SDO-1.2.4.tgz ...
Starting to download SCA_SDO-1.2.4.tgz (576,531 bytes)
....................................................................................................................done: 576,531 bytes
194 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module
ERROR: `phpize' failed

下载文件,解压缩并cd到文件夹中,然后执行pecl构建

下载自https://pecl.php.net/package/SCA_SDO

解压缩并更改到该文件夹并运行

phpize
./configure
make clean && make && make install
nano php.ini
 add extension=yourextension.so