安装php扩展时执行命令/user/bin/phpize 出现错误

执行命令/user/bin/phpize 出现如下错误

Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module

解决方法:

执行如下命令找到 config0.m4

find / -name config0.m4

查看其所在目录,我的目录是/var/www/tar/php-5.6.38/ext/openssl

进入目录 cd /var/www/tar/php-5.6.38/ext/openssl 

执行命令:  cp ./config0.m4 ./config.m4 即可解决


 


版权声明:本文为zhaijunliang2009原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。