首页 > Web开发 > 详细

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

时间:2020-05-20 09:04:40      阅读:258      评论:0      收藏:0      [点我收藏+]

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

无意中发现执行上一个命令./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

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

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!