首页 > 代码库 > 编译php扩展出现错误:Cannot find config.m4

编译php扩展出现错误:Cannot find config.m4

问题描述:

[root@localhost ~]# /usr/local/php/bin/phpize Cannot find config.m4. Make sure that you run ‘/usr/local/php/bin/phpize‘ in the top level source directory of the module

原因:当前目录没在扩展的目录

解决办法:进入到安装的扩展的目录,比如cd /home/cqh/tar/phpredis,然后再执行/usr/local/php/bin/phpize