Download the dependency package./configure--help Pcre using the old version
Unzip the dependency package
Installing apr-1.4.5
Go to the installation directory
cd/opt/apr-1.4.5/
Installation and compilation
./configure--PREFIX=/USR/LOCAL/APR
Make && make install
There may be no apr-util found in the back.
Go to the installation directory
cd/opt/apr-util-1.3.12/
Installation and compilation
./configure--prefix=/usr/local/apr-util-with-apr=/usr/local/apr/bin/apr-1-config
Make && make install
There may be no pcre found in the back.
Go to the installation directory
cd/opt/pcre-8.10/
Installation and compilation
./configure--prefix=/usr/local/pcre
Make && make install
Re-install Apache
Go to the installation directory
cd/opt/httpd-2.4.10/
Installation and compilation
Need to specify the dependency package location we just installed with the--with parameter
./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
What's the use of Linux, configure--prefix=/
If you do not specify prefix, the executable file is placed by default in/usr/local/bin, and the library file is placed by default in/usr/local/lib, and the configuration file is placed by default in/usr/local/etc. Other resource files are placed in the/usr/local/share. You want to uninstall this program, either in the original make directory with the made uninstall (if the make file specified uninstall), or go to the above directory to delete the relevant files by hand.
Specify prefix, delete a folder directly is enough.
Do not open a new window every time you double-click a folder under Linux
1, open the system--preferences--file management;
2. Switch to behavior in the open window, select "Always Open in browser window", then click Close to
Linux installation Software Process