Http://mirrors.tuna.tsinghua.edu.cn/apache//httpd/httpd-2.4.27.tar.bz2Apache Download Link
Unpack the Apache source package into the directory to run
#./configure--prefix=/usr/local/apach occurs when:
................
Checking for APR ... no
Configure:error:APR not found. Please read the documentation
Downloading the APR with Yum is useless, and later finding the complete APR actually contains three development kits: Apr, Apr-util, and Apr-iconv, each developed independently and with its own version.
Solutions
1. Download the required packages:
1.wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz
2.wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz
3.wget Http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip
2.
Solve Apr not found >>>>>>
[Email protected]]# tar-zxf apr-1.4.5.tar.gz
[[Email protected]]# CD apr-1.4.5
[[Email protected]]#./configure--PREFIX=/USR/LOCAL/APR
[[Email protected]]# make
[[Email protected]]# make install
Resolve Apr-util not found issues >>>>
[Email protected]]# tar-zxf apr-util-1.3.12.tar.gz
[[Email protected]]# CD apr-util-1.3.12
[[Email Protected]]#./configure--prefix=/usr/local/apr-util-with-apr=/usr/local/apr/bin/apr-1-config
[[Email protected]]# make
[[Email protected]]# make install
Solving pcre problems >>>>>>>>>
[Email protected]]# unzip-o Pcre-8.10.zip
[[Email protected]]# CD pcre-8.10
[[Email protected]]#./configure--prefix=/usr/local/pcre
[[Email protected]]# make
[[Email protected]]# make install
Can I use echo $ after all of the above make install? return value to confirm that the installation was successful (the return value is 0 succeeds and the other value is successful for installation)
Now go back and install Apache and specify the location of Apache,apr,apr-util and Apr-iconv.
[[Email protected]]#./configure--prefix=/usr/local/apache--with-apr=/usr/local/apr--with-apr-util=/usr/local/ Apr-util--wieh-apr-iconv=/usr/local/pcre
[[Email protected]]# make
[[Email protected]]# make install
Apache installation compilation encountered Apr issue