From ee0d1a431907654b8ad738443134e53bb74d8b47 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Tue, 15 Nov 2011 19:09:23 -0500 Subject: [PATCH] Shell script to install the APR stuff that will be used while making devpkg in ch27 ex26 --- apr-install-script.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 apr-install-script.sh diff --git a/apr-install-script.sh b/apr-install-script.sh new file mode 100755 index 0000000..f7a202e --- /dev/null +++ b/apr-install-script.sh @@ -0,0 +1,40 @@ +#!/bin/bash +set -e + +# go somewhere safe +cd /tmp + +# get the source to base APR 1.4.5 +curl -L -O http://download.nextag.com/apache/apr/apr-1.4.5.tar.gz + +# extract it and go into the source +tar -xzvf apr-1.4.5.tar.gz +cd apr-1.4.5 + +# configure, make, make install +./configure +make +sudo make install + +# reset and cleanup +cd /tmp +rm -rf apr-1.4.5 apr-1.4.5.tar.gz + +# do the same with apr-util +curl -L -O http://download.nextag.com/apache/apr/apr-util-1.3.12.tar.gz + +# extract +tar -xzvf apr-util-1.3.12.tar.gz +cd apr-util-1.3.12 + +# configure, make, make install +./configure --with-apr=/usr/local/apr +# you need that extra parameter to configure because +# apr-util can't really find it because... who knows. + +make +sudo make install + +# cleanup +cd /tmp +rm -rf apr-util-1.3.12* apr-1.4.5*