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

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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM