Configure: Error: Apr not found. Please read the documentation

Source: Internet
Author: User

Method 1

 

I thought that Apache compilation and installation is very simple, but it is not;

Few errors were reported during compilation in the previous environment, but this time it will not work.

The Configure: Error: Apr not found. Please read the documentation.

I found out that this is the related software of Apache after checking the information on the Internet.

You can download this software (apr-1.4.5.tar.gz) on the apr.apache.org website. After compiling and installing the software, you thought you could install Apache with peace of mind.

Configure: Error: Apr-util not found. Please read the documentation

Then download apr-util-0.9.19.tar.bz2 for compilation and installation.

After the installation is complete, I did not expect to report an error again during Apache compilation and installation.

Configure: Error: Apr version 1.3.0 or later is required
I am so angry that I have read it again, mainly because the APR version is too low.

Installing the new version I downloaded the apr-util-1.3.12.tar.gz again

Yum remove Apr-util-devel APR Apr-util-mysql Apr-docs Apr-devel Apr-util-docs

The procedure is as follows:

1. Solve the APR not found problem ------>

[Root @ yahoo test] # tar-zxf apr-1.4.5.tar.gz

[Root @ yahoo apr-1.4.5] #./configure -- prefix =/usr/local/APR

[Root @ yahoo apr-1.4.5] # Make

[Root @ yahoo apr-1.4.5] # make install

2. Solve the Problem of APR-util not found >>>>

[Root @ yahoo test] # tar-zxf apr-util-1.3.12.tar.gz

[Root @ yahoo apr-util-1.3.12] #./configure -- prefix =/usr/local/APR-util-with-Apr =/usr/local/APR/bin/apr-1-config

[Root @ yahoo apr-util-1.3.12] # Make
[Root @ yahoo apr-util-1.3.12] # make install

3. Compile Apache

[Root @ yahoo httpd-2.3.12-beta] #. /configure -- prefix =/usr/local/apache2 -- With-Apr =/usr/local/APR -- With-Apr-util =/usr/local/APR-util/

[Root @ yahoo httpd-2.3.12-beta] # Make
[Root @ yahoo httpd-2.3.12-beta] # make install

[Root @ yahoo httpd-2.3.12-beta] #/usr/local/apache2/bin/apachectl start

Enter the address in IE to display

It works!

 Method 2

========================================================== ======================================

 

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. wgethttp: // archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz
3. wgethttp: // 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] # cd apr-1.4.5 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] # cd apr-util-1.3.12 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] # cd pcre-8.10 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 ~

This article from the Linux community website (www.linuxidc.com) original link: http://www.linuxidc.com/Linux/2012-06/62289.htm

 

Bytes -----------------------------------------------------------------------------------------------------------

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.