Script for ex26 to install apr and apr-util
This commit is contained in:
parent
ca4032aac1
commit
c55b0e5c4c
41
lcthw-remnants-2/install-apr
Executable file
41
lcthw-remnants-2/install-apr
Executable file
@ -0,0 +1,41 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# go somewhere safe
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
# get the source to base APR 1.4.6
|
||||||
|
curl -L -O http://archive.apache.org/dist/apr/apr-1.4.6.tar.gz
|
||||||
|
|
||||||
|
# extract it and go into the source
|
||||||
|
tar -xzvf apr-1.4.6.tar.gz
|
||||||
|
cd apr-1.4.6
|
||||||
|
|
||||||
|
# configure, make, make install
|
||||||
|
./configure
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
|
||||||
|
# reset and cleanup
|
||||||
|
cd /tmp
|
||||||
|
rm -rf apr-1.4.6 apr-1.4.6.tar.gz
|
||||||
|
|
||||||
|
# do the same with apr-util
|
||||||
|
curl -L -O http://archive.apache.org/dist/apr/apr-util-1.4.1.tar.gz
|
||||||
|
|
||||||
|
# extract
|
||||||
|
tar -xzvf apr-util-1.4.1.tar.gz
|
||||||
|
cd apr-util-1.4.1
|
||||||
|
|
||||||
|
# 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.4.1* apr-1.4.6*
|
Loading…
Reference in New Issue
Block a user