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
-
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
-
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
-
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
-
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
-
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
END