1。故障现象:提示错误:apache
checking whether to enable mod_deflate... configure: error: mod_deflate has been requested but can not be built due to prerequisite failurescentos
缘由:缺乏zlib-develless
解决:安装zlib-devel,yum install -y zlib-devel(centos)dom
2.故障现象:ide
configure: error: no acceptable C compiler found in $PATHui
缘由:缺乏gccspa
解决:安装gcc ,yum install -y gccserver
3. configure: error: Size of "void *" is less than size of "long"get
有说法。
it
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值。