Configure:error:APR not found to install APAHCE under CentOS. Please read the documentation solution

Source: Internet
Author: User

Turn from:

Http://www.cnblogs.com/Anker/p/3355573.html

Today from the Apache official online http://httpd.apache.org/download httpd Web server, because I installed before on the virtual machine, I first the Yum remove httpd to uninstall, and then reinstall. I use the source code installation, first of all./configure--prefix=/usr/local/apahce--enable-so, the following error is indicated:

Configure:error:APR not found. Please read the documentation.

Solutions

wget http://apache.freelamp.com/apr/apr-1.4.2.tar.gz Download Apr

./configure–prefix=/usr/local/apr

Make

Make install

wget http://apache.freelamp.com/apr/apr-util-1.3.10.tar.gz

./configure–prefix=/usr/local/web/apr-util–with-apr=/usr/local/apr

Make

Make install

3.. /configure still prompts Apr-util not found, increases--WITH-APR=/USR/LOCAL/APR--with-apr-util=/usr/local/apr-util appears after

Configure:error:pcre-config for Libpcre not found. PCRE is required and available from http://pcre.org/

#./configure–help | grep pcre

--with-pcre=path Use external Pcre library

Download: Http://sourceforge.net/projects/pcre
Two: http://ftp.exim.llorien.org/pcre/

#unzip-O Pcre-8.10.zip

#cd pcre-8.10

#./configure--prefix=/usr/local/pcre

#make

#make Install

Last Install Apahce:

./configure--prefix=/usr/local/apache--enable-rewrite--enable-so--with-apr=/usr/local/apr--with-apr-util=/usr/ Local/apr-util--with-pcre=/usr/local/pcre

Make

Make install

Reference:

Http://www.itokit.com/2012/0430/73710.html

Http://www.linuxqq.net/archives/229.html

Below is the normal installation procedure? :

http://tonyguo.blog.51cto.com/379574/168534/

Configure:error:APR not found to install APAHCE under CentOS. Please read the documentation solution

Related Article

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.