安装php7.2+nginx1.14.2常见报错解决方法_2018_lcf

1.PHP(无底色行是错误信息,黑底色行是解决方法)

configure: error: Cannot find OpenSSL's <evp.h>

# yum -y install openssl openssl-deve

checking for cURL 7.10.5 or greater... configure: error: cURL version 7.10.5 or later is required to compile php with cURL support

# yum -y install curl-devel 

configure: error: jpeglib.h not found.

# yum -y install libjpeg-devel

configure: error: Unable to locate gmp.h

yum install gmp-devel

configure: error: Cannot find ldap.h

yum -y install openldap openldap-devel

 configure: error: Please reinstall readline - I cannot find readline.h

yum -y install readline-devel

 configure: error: png.h not found. 

# yum -y install libpng-devel

 configure: error: freetype-config not found.

# yum -y install freetype-devel

 

 

2. Nginx(无底色行是错误信息,黑底色行是解决方法)

./configure: error: the HTTP rewrite module requires the PCRE library.

# yum -y install pcre-devel

./configure: error: SSL modules require the OpenSSL library.

# yum -y install openssl openssl-deve

./configure: error: the HTTP XSLT module requires the libxml2/libxslt

yum -y install libxslt-devel

./configure: error: the HTTP image filter module requires the GD library.

# yum -y install gd-devel

./configure: error: the GeoIP module requires the GeoIP library.
 

# yum -y install GeoIP-devel

nginx: [emerg] getpwnam("nginx") failed

# useradd -s /sbin/nologin -M nginx

nginx: [emerg] mkdir() "/var/lib/nginx/tmp/client_body" failed (2: No such file or directory)

# mkdir /var/lib/nginx/tmp -p

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

璐程风

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值