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值。