问题一:
Cannot find config.m4.
Make sure that you run './phpize' in the top level source directory of the module
解决办法:
在php源码包中复制一个并移动到指定为止改名
[root@localhost bin]# cp ~/php-7.2.2/ext/openssl/config0.m4 /usr/local/php/bin/config.m4 [root@localhost bin]# ./phpize Configuring for: PHP Api Version: 20170718 Zend Module Api No: 20170718 Zend Extension Api No: 320170718
问题二:
rockylinux9 configure: error: C++ preprocessor "/lib/cpp" fails sanity check
检查依赖包是否安装完毕、
sudo dnf reinstall gcc gcc-c++ glibc glibc-devel sudo dnf install gcc-c++ kernel-devel