Solve the Problem of compiling Apache: Configure: Error: Apr not found. Please read the documentation

Source: Internet
Author: User

An error occurred while compiling Apache today:

#./Configure -- prefix ...... When checking the editing environment:

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

Solution:

1. download the required software package:

  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-docs

The procedure is as follows:

A: Solve the Problem of APR not found >>>>>

  1. [Root @ XT test] # tar-zxf apr-1.4.5.tar.gz
  2. [Root @ XT test] # apr-1.4.5 CD
  3. [Root @ XT apr-1.4.5] #./configure -- prefix =/usr/local/APR
  4. [Root @ XT apr-1.4.5] # Make & make install
  5.  

B: Solve the Problem of APR-util not found >>>>

  1. [Root @ XT test] # tar-zxf apr-util-1.3.12.tar.gz
  2. [Root @ XT test] # apr-util-1.3.12 CD
  3. [Root @ XT apr-util-1.3.12] #./configure -- prefix =/usr/local/APR-util-with-Apr =/usr/local/APR/bin/apr-1-config
  4. [Root @ XT apr-util-1.3.12] # Make & make install

C: Solve the PCRE problem >>>>>>>>>

  1. [Root @ XT test] # unzip-O pcre-8.10.zip
  2. [Root @ XT test] # pcre-8.10 CD
  3. [Root @ XT pcre-8.10] #./configure -- prefix =/usr/local/PCRE
  4. [Root @ XT pcre-8.10] # Make & make install

4. Add:

-- With-Apr =/usr/local/APR \

-- With-Apr-util =/usr/local/APR-util /\

-- With-PCRE =/usr/local/PCRE

Compilation completed ~

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.