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

Source: Internet
Author: User

Tar zvxf httpd-2.2. +. tar.gz CD httpd-2.2. + ./configure--prefix=/usr/local/apache2--enable-so--enable-rewriteAn error occurred while compiling----------------------------------------------------The solution is as follows:-------------------------------------------------------------------#./configure--prefix ... When checking the editing environment: checking forAPR ... noconfigure:error:APR not found. Please read the documentation solution:1. Download the required package: wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gzwget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gzwget http://Jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip2. Compile and install: Yum Remove Apr-util-devel Apr apr-util-mysql apr-docs apr-devel apr-util apr-util-docs steps are as follows: A: Solving 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]# make &&Make Install B: Resolve Apr-util not found issues >>>>[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. A]#./configure--prefix=/usr/local/apr-util--with-apr=/usr/local/apr/bin/apr-1-config [[email protected] Apr-util-1.3. A]# make &&Make install 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] #make &&Make Install--------------------------------------compile Apache again----------------------./configure--prefix=/usr/local/apache2--enable-so--enable-rewrite--with-apr=/usr/local/Apr--with-apr-util=/usr/local/apr-util--with-pcre=/usr/local/pcre make make install

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.