php安装扩展出现错误:Cannot find config.m4.Make sure that you run '/usr/local/php5.6.23/bin/phpize' in the to

本人安装swoole出现错误

Cannot find config.m4

Make sure that you run '/usr/local/php5.6.23/bin/phpize' in the top level source directory of the module

 

解决方法:

1. find /* -name openssl      找到自己安装PHP的openssl 路径

php安装扩展出现错误:Cannot find config.m4.Make sure that you run '/usr/local/php5.6.23/bin/phpize' in the to_第1张图片

2. 进入你的openssl目录  拷贝config0.m4为config.m4

cd /home/php-5.6.37/ext/openssl

cp ./config0.m4 ./config.m4

结果运行phpize:

成功解决问题

 

 

 

你可能感兴趣的:(Linux安装)