问题复现 configure: WARNING: unrecognized options: --with-mcrypt, --enable-gd-native-ttf 问题分析 php7.2以后不支持–with-mcrypt, --enable-gd-native-ttf 这两个参数,需要去掉 问题解决 php编译我一开始用的源码: [root@xinsz08 php-7.3.6]# './configure' '--prefix=/app/php' '--with-pdo-pgsql'