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

本站所有内容来自互联网收集,仅供学习和交流,请勿用于商业用途。如有侵权、不妥之处,请第一时间联系我们删除!Q群:迪思分享

免费资源网 – https://freexyz.cn/

1.PHP

configure: error: Cannot find OpenSSLs <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
免费资源网 – https://freexyz.cn/


© 版权声明
THE END
★喜欢这篇文章吗?喜欢的话,麻烦动动手指支持一下!★
点赞10 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容