Solution to install Apache hint Apr not found

Source: Internet
Author: User

Do not know why the installation of apache2.2.22 version of the time without any problems, direct use of the command

./configure--prefix=/home/www/www_test/software/apache-2.2.22--enable-proxy--enable-so--enable-mods-shared= Most--with-mpm=worker

There are no problems, but you will get an error when installing a new version of 2.4.2 .

The solution is as follows:

#./configure--prefix ... When checking the editing environment, it appears:
Checking for APR ... no
Configure:error:APR not found. Please read the documentation.

can be used./configure–help | grep Apr view Help.
--WITH-INCLUDED-APR use bundled copies of Apr/apr-util
--with-apr=path prefix for installed Apr or the full PATH to Apr-config
--with-apr-util=path prefix for installed Apus or the full PATH to
Install Apr (Apache portable Runtime)
[[email protected] ~]# cd/tmp/52lamp///Source storage location
[Email protected] 52lamp]# TAR-ZXVF apr-1.4.2.tar.gz//unzip-o apr-1.4.2.zip
[Email protected] 52lamp]# CD apr-1.4.2
[Email protected] apr-1.4.2]#./configure
[[email protected] apr-1.4.2]# make
[[email protected] apr-1.4.2]# make install

Check that the compilation environment appears again
Checking for Apr-util ... No
Configure:error:apr-util not found. Please read the documentation.

[[email protected] httpd-2.2.16]#./configure–help | grep apr-util
--with-apr-util=path prefix for installed Apus or the full PATH to

[Email protected] 52lamp]# TAR-ZXVF apr-util-1.3.9.tar.gz
[Email protected] 52lamp]# CD apr-util-1.3.9
[Email protected] apr-util-1.3.9]#/configure--prefix=/usr/local/apr-util--with-apr=/usr/local/apr
[[email protected] apr-util-1.3.9]# make
[[email protected] apr-util-1.3.9]# make install

./configure still prompts Apr-util not found, which appears after adding--WITH-APR=/USR/LOCAL/APR--with-apr-util=/usr/local/apr-util
Configure:error:pcre-config for Libpcre not found. PCRE is required and available from http://pcre.org/

[[email protected] httpd-2.2.16]#./configure–help | grep pcre
--with-pcre=path Use external Pcre library

[Email protected] 52lamp]# Unzip-o pcre-8.10.zip
[Email protected] 52lamp]# CD pcre-8.10
[[Email protected] CD pcre-8.10]#./configure--prefix=/usr/local/pcre
[[Email protected] CD pcre-8.10]# make
[[Email protected] CD pcre-8.10]# make install

Add parameter--with-apr=/usr/local/apr/--with-apr-util=/usr/local/apr-util/when continuing to install Apache/httpd,./configure--with-pcre=/ Usr/local/pcre, this problem is solved.

Download Link:

Http://download.chinaunix.net/download/0001000/66.shtml

Http://download.chinaunix.net/download/0001000/470.shtml

Http://download.chinaunix.net/download/0008000/7913.shtml

Solution to install Apache hint Apr not found

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.