本博客为《linux就该这么学》第20章问题解决
nginx
1.错误为:./configure: error: the HTTP rewrite module requires the PCRE library.
安装pcre-devel解决问题 yum -y install pcre-devel
2.错误提示:./configure: error: the HTTP cache module requires md5 functionsfrom OpenSSL library. You can either disable the module by using–without-http-cache option, or install the OpenSSL library into the system,or build the OpenSSL library statically from the source with nginx by using–with-http_ssl_module --with-openssl=
options.
解决办法: yum -y install openssl openssl-devel
PHP
1. 提示:configure: error: xml2-config not found. Please check your libxml2 installation
执行 sudo apt-get install libxml2
如果还出现configure: error: xml2-config not found. Please check your libxml2 installation错误,则可能是缺少libxml2-dev。
执行sudo apt-get install libxml2-dev
2. 提示:checking for cURL 7.15.5 or greater… configure: error: cURL version 7.15.5 or later is required to compile php with cURL support
执行dnf install -y curl-devel
3.提示:configure: error: png.h not found.
yum install libpng yum install libpng-devel
诱因:安装依赖关系时出现8个问题
dnf -y install apr* autoconf automake numactl bison bzip2-devel cpp curl-devel fontconfig-devel freetype-devel gcc gcc-c++ gd-devel gettext-devel kernel-headers keyutils-libs-devel krb5-devel libcom_err-devel libpng-devel libjpeg* libsepol-devel libselinux-devel libstdc+±devel libtool* libxml2-devel libXpm* libxml* libXaw-devel libXmu-devel libtiff* make openssl-devel patch pcre-devel perl php-common php-gd telnet zlib-devel libtirpc-devel gtk* ntpstat na* bison* lrzsz cmake ncurses-devel libzip-devel libxslt-devel gdbm-devel readline-devel gmp-devel
|