APR-util

Before starting: Make sure you have the necessary folders and permissions — get more information.

Links: Homepage | Downloads
Dependencies: None
Version: 1.6.1

Apache Portable Runtime Utility (APR-util).

Get the Code

Switch to /usr/local/src and download the source package.

cd /usr/local/src
curl --remote-name http://mirror.csclub.uwaterloo.ca/apache//apr/apr-util-VERSION.tar.gz

Extract the archive and move into the folder.

tar -xzvf apr-util-VERSION.tar.gz
cd apr-util-VERSION

Compile and Install

Configure, compile and install into /usr/local/mac-dev-env/apr-util-VERSION.

./configure \
  --prefix=/usr/local/mac-dev-env/apr-util-VERSION \
  --with-apr=/usr/local/apr
make
make install

Create a symbolic link to /usr/local/apr-util.

sudo ln -s mac-dev-env/apr-util-VERSION /usr/local/apr-util

Shell

Execute the following lines to update your Bash startup script.

echo 'export PATH=/usr/local/apr-util/bin:$PATH' >> ~/.bash_profile

Load the new shell configurations.

source ~/.bash_profile

Verify the Installation

Verify that you have successfully installed APR-util.

apu-1-config --version