LNMP环境搭建时安装PHP编译报错:make: *** No targets specified and no makefile found. Stop.

猜测是少 了点什么东西,未果,继续网上寻找解决方法

无意中发现执行上一个命令./configure时末尾有报错,粗心未发现:

configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/

解决方法:

yum -y install curl-devel

重新执行./configure命令编译,报错:

configure: error: jpeglib.h not found.

解决方法:

yum -y install libjpeg-devel

再执行./configure,继续报错:
configure: error: png.h not found.

解决方法:

yum install libpng

yum install libpng-devel

再执行./configure,还报错:

configure: error: freetype.h not found.

解决方法:

yum install freetype-devel

版本:centos 7.7+PHP 5.3.29

小白有点懵,想不明白为什么会少了几个依赖,记录一下问题

原文地址:https://www.cnblogs.com/will-wu/p/12920610.html