Resolves a problem with compiling Apache: Configure:error:APR not found. Please read the documentation

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:

Apr and Apr-util official website

http://apr.apache.org/download.cgi

wget Http://apache.fayea.com//apr/apr-1.5.2.tar.gzwget Http://apache.fayea.com//apr/apr-util-1.5.4.tar.gzwget Http://jaist.dl.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz

The Pcre library can be used
Rpm-qa | grep pcre Check whether the Pcre library is installed if it is installed you can temporarily not install the Pcre library

If the installation prompts not found Pcre you need to install

2. Compile and install:

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

[Email protected] test]# tar-zxf apr-1.4. 5 . tar.gz  [Email protected] test]# CD  Apr-1.4. 5   [email protected] Apr-1.4.  5]#./configure--prefix=/usr/local/Apr  [[Email protected] Apr-1.4.  5

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

[Email protected] test]# TAR-ZXF apr-util-1.3.  A . tar.gz  [Email protected] test]# CD Apr-util-1.3.  A   [email protected] Apr-util-1.3.  ]#./configure--prefix=/usr/local/apr-util--with-apr=/usr/local/apr/bin/apr-1-config  [email protected] Apr-util-1.3.  A

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

[[email protected] test] #unzip-o pcre-8.10. zip  [[email protected] test] #cd pcre-8.10 [   Email protected] pcre-8.10]#./configure--prefix=/usr/local/pcre  [email Protected] Pcre-8.10

4. When you finally compile Apache, add:

--with-apr=/usr/local/apr

--with-apr-util=/usr/local/apr-util

--with-pcre=/usr/local/pcre

Successful compilation completed ~

Resolves a problem with compiling Apache: Configure:error:APR not found. Please read the documentation

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.