Apache installation compilation encountered Apr issue

Source: Internet
Author: User

Http://mirrors.tuna.tsinghua.edu.cn/apache//httpd/httpd-2.4.27.tar.bz2Apache Download Link

Unpack the Apache source package into the directory to run

#./configure--prefix=/usr/local/apach occurs when:

................

Checking for APR ... no
Configure:error:APR not found. Please read the documentation

Downloading the APR with Yum is useless, and later finding the complete APR actually contains three development kits: Apr, Apr-util, and Apr-iconv, each developed independently and with its own version.

Solutions

1. Download the required packages:

1.wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz

2.wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz

3.wget Http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip
2.

Solve Apr not found >>>>>>

[Email protected]]# tar-zxf apr-1.4.5.tar.gz

[[Email protected]]# CD apr-1.4.5

[[Email protected]]#./configure--PREFIX=/USR/LOCAL/APR

[[Email protected]]# make

[[Email protected]]# make install

Resolve Apr-util not found issues >>>>

[Email protected]]# tar-zxf apr-util-1.3.12.tar.gz

[[Email protected]]# CD apr-util-1.3.12

[[Email Protected]]#./configure--prefix=/usr/local/apr-util-with-apr=/usr/local/apr/bin/apr-1-config

[[Email protected]]# make

[[Email protected]]# make install

Solving pcre problems >>>>>>>>>

[Email protected]]# unzip-o Pcre-8.10.zip

[[Email protected]]# CD pcre-8.10

[[Email protected]]#./configure--prefix=/usr/local/pcre

[[Email protected]]# make

[[Email protected]]# make install

Can I use echo $ after all of the above make install? return value to confirm that the installation was successful (the return value is 0 succeeds and the other value is successful for installation)
Now go back and install Apache and specify the location of Apache,apr,apr-util and Apr-iconv.

[[Email protected]]#./configure--prefix=/usr/local/apache--with-apr=/usr/local/apr--with-apr-util=/usr/local/ Apr-util--wieh-apr-iconv=/usr/local/pcre
[[Email protected]]# make

[[Email protected]]# make install

Apache installation compilation encountered Apr issue

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.