apache install error error: APR not found a solution

When you install linux install different types, some of the components of the package may not be installed, resulting in the installation of the software under linux lack this lack that, today to introduce solutions linux install apache apr Times can not be found

1. Download dependencies

wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz  wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz  wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip

  1. apache install error error: APR not found a solution
  2. 2

    Extracting dependencies

    tar -xzvf apr-1.4.5.tar.gz

    tar -xzvf apr-util-1.3.12.tar.gz

    takes -xzvf pcre-8.10.zip

    apache install error error: APR not found a solution
  3. 3

    Installation apr-1.4.5

    Enter the installation directory

    cd /opt/apr-1.4.5/

    Compile and install

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

    make && make install

    apache install error error: APR not found a solution
  4. 4

    Can not find the back may also occur apr-util

    Enter the installation directory

    cd /opt/apr-util-1.3.12/

    Compile and install

    ./configure --prefix=/usr/local/apr-util -with- apr=/usr/local/apr/bin/apr-1-config

    make && make install

    apache install error error: APR not found a solution
  5. 5
    Can not find the back may also occur pcre

    Enter the installation directory

    cd /opt/pcre-8.10/

    Compile and install

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

    make && make install

    apache install error error: APR not found a solution
  6. 6

    Re-install apache

    Enter the installation directory

    cd /opt/httpd-2.4.10/

    Compile and install

    You need to specify dependencies position we have just installed with --with parameters

    ./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre

    make && make install

    apache install error error: APR not found a solution
    END

Guess you like

Origin www.cnblogs.com/Mercury-linux/p/11441873.html