Pecl phpize找不到config.m4找不到

时间:2012-08-20 23:06:14

标签: php pecl

我正在尝试安装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

2 个答案:

答案 0 :(得分:2)

下载文件,解压缩并cd到该文件夹​​,然后执行 pecl build

答案 1 :(得分:1)

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

解压缩并切换到该文件夹​​并运行

phpize
./configure
make clean && make && make install

nano php.ini
 add extension=yourextension.so