Since Apache 2.4, the Apache Portable Runtime and the Perl Compatible Regex modules are no longer packaged with the original source. However, these modules are mandatory for Apache to compile and run. For reference the APR Expand |
---|
title | Click here to find out why you need these libraries ... |
---|
| APR The APR library provides a set of APIs that map to the underlying O/S and emulate functions | that if they are not available, making Apache platform-agnostic. PCRE The PCRE library | prohan vides provides more powerful and flexible regex | expressions expression functionality than other | flaovours flavours and is used by mod_rewrite, etc.
|
Apache provides the flexibility to point to existing instances of these when compiling. If you do not have these modules you can add them as follows: First, download the module source files: Code Block |
---|
| $ wget http://archive.apache.org/dist/apr/apr-1.6.3.tar.bz2
$ wget http://archive.apache.org/dist/apr/apr-util-1.6.1.tar.bz2
# Apache 2 requires pcre, not pcre2
$ wget --no-check-certificate https://ftp.pcre.org/pub/pcre/pcre-8.41.tar.bz2 |
Extract the source files: Code Block |
---|
| # APR and APR utils can be compiled with Apache out of the box provided they are in the srclib directory
$ tar -x[z]vf apr-1.6.3.tar[.gz] --directory /opt/httpd-2.4.x/srclib/apr
$ tar -x[z]vf apr-util-1.6.1.tar[.gz] -- directory /opt/httpd-2.4.x/srclib/apr-util
# PCRE will not be automatically compiled in the srclib directory, so either manipulate the build script or simply keep it separate.
$ tar -x[z]vf pcre-8.41.tar[.gz] |
If you've placed PCRE in its own folder, you will have to build it first: Code Block |
---|
| $ ./configure --prefix=/opt/pcre --enable-pcre16 --enable-pcre32
$ make
$ make install |
|