Downloading and Building APR

Procedure

  1. Install the Apache Portable Runtime (APR) and OpenSSL (if not already installed on the system).
  2. For Debian-based Linux platform, execute the following command:

    apt-get install build-essential libapr1-dev libssl-dev

  3. For Redhat Linux, follow these steps:
    1. Download the source (.tar.gz) file for APR from the following URL:
    2. Execute the following command to extract the package:

      tar xvzf apr-1.5.0.tar.gz

    3. Execute the following commands at the command prompt in sequence:
      cd apr-1.5.0
      ./configure
      make
      make install
    4. Check the path shown at the end of make install command. The directory specified by this path should contain apr-1-config. The apr-1-config is required to build the Tomcat native library as mentioned in Building Tomcat Native Library section.