安裝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: 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