Installing Apache on Linux appears Configure:error:APR not found. Please read the documentation error

Source: Internet
Author: User

There was an error compiling Apache today:

#./configure--prefix ... When checking the editing environment, it appears:

Checking for APR ... no
Configure:error:APR not found. Please read the documentation

Workaround:

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. Compile and install:

    1. Yum Remove apr-util-devel Apr apr-util-mysql apr-docs apr-devel apr-util Apr-util-docs

The steps are as follows:

A: Solve Apr not found problem >>>>>>

    1. [Email protected] test]# TAR-ZXF apr-1.4.5.tar.gz
    2. [Email protected] test]# CD apr-1.4.5
    3. [Email protected] apr-1.4.5]#/configure --prefix=/usr/local/apr
    4. [[email protected] apr-1.4.5]# make && make install

B: Solve apr-util not found problem >>>>

    1. [Email protected] test]# TAR-ZXF apr-util-1.3.12.tar.gz
    2. [Email protected] test]# CD apr-util-1.3.12
    3. [Email protected] apr-util-1.3.12]#/configure --prefix=/usr/local/apr-util-with- apr=/usr/local/apr/bin/ Apr-1-config
    4. [[email protected] apr-util-1.3.12]# make && make install


C: Solve pcre problem >>>>>>>>>

    1. [[email protected] test] #unzip-o pcre-8.10.zip
    2. [[email protected] test] #cd pcre-8.10
    3. [Email protected] pcre-8.10]#./configure --prefix=/usr/local/pcre
    4. [[email protected] pcre-8.10] #make && make install

4. When you finally compile Apache, add:

./configure--PREFIX=/USR/LOCAL/HTTPD2 \
--enable-modules=all \
--enable-mods-shared=all \
--ENABLE-SO \
--WITH-APR=/USR/LOCAL/APR \
--with-apr-util=/usr/local/apr-util/\
--with-pcre=/usr/local/pcre

At last

Make && make install

Successful compilation completed ~

Installing Apache on Linux appears Configure:error:APR not found. Please read the documentation error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.