Shell script to install the APR stuff that will be used while making devpkg in ch27 ex26
This commit is contained in:
parent
499f82221a
commit
ee0d1a4319
40
apr-install-script.sh
Executable file
40
apr-install-script.sh
Executable file
@ -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*
|
Loading…
Reference in New Issue
Block a user