安装 apache错误集合
1。故障现象:提示错误:checking whether to enable mod_deflate... configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
原因:缺少zlib-devel
解决:安装zlib-devel,yum install -y zlib-devel(centos)
2.故障现象:
configure: error: no acceptable C compiler found in $PATH
原因:缺少gcc
解决:安装gcc ,yum install -y gcc
3. configure: error: Size of "void *" is less than size of "long"
有说法。
1)移除--with-pcre=/xxx/xxx/pcre选项,未尝试,
2)增加 ap_cv_void_ptr_lt_long=no ,可行,但下一步make时会提示如下报错,
util_pcre.c:140: undefined reference to `pcre_info'
采用移除的办法,就不会有提示错误了。但是不是少了点什么???
4。开户apache时报以下错误:
httpd: apr_sockaddr_info_get() failed for Web-Server
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
解决:httpd.conf内设置ServerName值。
页:
[1]