configure: error: GD build test failed. Please check the config.log
在编译 PHP7.3 时出现错误
configure: error: GD build test failed. Please check the config.log
但我看了日志没有看出来有什么错误啊。
网上找资料,见有的说 --with-gd=/usr/local/gd 就没有事了,可是根本没有这个目录,配置上了编译会出现找不到 gd.h 的问题。看来是因为我的 gd 库没有装在 /usr/local/gd 目录下面,于是就重新安装了 gd 库,发现是安装在 /usr/local/include 目录下的,配置上编译果然没有问题了。