1 , install httpd-2.2.27./configure when the error is as follows
Checking for void Pointerlength ... yes configure:error:Size of "void *" is less than Size of "long"
Solution VI Configure
if test "$ap _cv_void_ptr_lt_long" = "yes"; Then
As_fn_error $? "Size of \" Void*\ "is less than Size of \" long\ "" $LINENO "5
Change to if test "$ap _cv_void_ptr_lt_long"! = "yes"; Then
As_fn_error $? "Size of \" Void*\ "is less than Size of \" long\ "" $LINENO "5
Save recompile
2 , install and install pcre-8.32 under Linux
./configure--prefix=/usr/local/pcre The following error occurred
Configure:error:You need a C + + compiler for C + + support
Positive solution
Yum install-y gcc gcc-c++
3 , if you are installing Apache, enter the error:mod_deflate have beenrequested but can is built due to prerequisite failures the error, that is, the zlib package is not installed. The Yum install Zlib-devel can be used under CentOS, and Apt-get install Zlib1g-dev can be used under Ubuntu.
4 , the following error occurred during the compilation of Apache:
No ssl-c headers found
Configure:error: ... No recognized SSL/TLS toolkit detected
Workaround:
Installing Openssl-devel
5 , install Apache error
The code is as follows:
rotatelogs.o:in function Post_rotate ':
ROTATELOGS.C: (. text+0x5ed): Undefined reference to Apr_file_link '
Collect2:ld returned 1 exit status
MAKE[2]: * * * [rotatelogs] Error 1
MAKE[2]: Leaving Directory/root/src/httpd-2.4.2/support '
MAKE[1]: * * * [all-recursive] Error 1
MAKE[1]: Leaving Directory/root/src/httpd-2.4.2/support '
Make: * * * [all-recursive] Error 1
These are the bags without the APR.
There are 2 workarounds:
The first of these solutions:
. The code is as follows:
Yum Remove "apr*"
wget http://ftp.jaist.ac.jp/pub/apache/apr/apr-1.4.6.tar.gz
Tar xzf apr-1.4.6.tar.gz
CD apr-1.4.6
./configure; make; Make install
wget http://ftp.jaist.ac.jp/pub/apache/apr/apr-util-1.4.1.tar.gz
Tar zxvf apr-util-1.4.1.tar.gz
CD apr-util-1.4.1
./configure–with-apr=/usr/local/apr
Yum install-y pcre-devel lua-devel libxml2-devel
The second solution:
Download the ARP package after the CP to httpd folder
. The code is as follows:
Cp-r apr-1.4.6 HTTPD-2.4.2/SRCLIB/APR
Cp-r apr-util-1.4.1 Httpd-2.4.2/srclib/apr-util
It's going to work out.
The second common error is that only the mini installation will appear. Most novices will not install devel packages
. The code is as follows:
checking for OpenSSL version >= 0.9.7 ..... FAILED
Configure:WARNING:OpenSSL version is too old
No
Checking whether to enable Mod_ssl ... Configure:error:mod_ssl have been requested but can isn't being built due to prerequisite f Ailures
Solutions
. The code is as follows:
Yum Install Openssl-devel
Yum Update OpenSSL
Apache Compilation Problem Summary