Centos compilation and configuration Apache

Source: Internet
Author: User

Under the Centos-7.x86_64.

 

The following message may be prompted during compilation:

checking for APR... noconfigure: error: APR not found. Please read the documentation.checking for APR-util... noconfigure: error: APR-util not found. Please read the documentation.

After installing yum, the system will still prompt that the system cannot be found.

You have to manually download and install Apr.

# wget -c http://www.eu.apache.org/dist//apr/apr-1.5.1.tar.gz
# tar -zxvf apr-1.5.1.tar.gz
# cd apr-1.5.1
# ./configure --prefix=/usr/lib/apr
# make && make install

Apr-util:

# wget -c http://www.eu.apache.org/dist//apr/apr-util-1.5.4.tar.gz
# cd apr-util-1.5.4
# ./configure --prefix=/usr/lib/apr-util --with-apr=/usr/lib/apr
# make && make install

Note: If the installation of APR-util is incorrect, the following error may occur if you delete the installation directory and reinstall it. You only need to make clean in the decompressed directory before continuing.

Libtool: Install: Error: cannot install 'libaprutil-1. la' to a directory not ending in/usr /***

 

Then:

# ./configure --prefix=/usr/local/apache --enable-mods-shared=most --enable-mods-shared=all --enable-modules=so --enable-proxy=shared --enable-proxy_connect=shared --enable-headers=shared --with-apr=/usr/lib/apr --with-apr-util=/usr/lib/apr-util

My PCRE is shared.

 

Centos compilation and configuration Apache

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.