1. 查看php历史编译命令`php -i | grep Configure` ## 报错 `configure: error: libxml2 not found. Please check your libxml2 installation.` ## 解决 centos `yum install libxml2-devel` ubuntu `apt-get install libxml2-dev` ## 报错 `Cannot find OpenSSL's evp.h` ## 解决 `yum install openssl openssl-devel` ## 报错 `configure: error: cURL version 7.15.5 or later is required to compile php with cURL support` ## 解决 `yum install curl-devel` ## 报错 `configure: error: png.h not found.` ## 解决 `yum install libpng-devel`