Created
April 1, 2009 00:11
-
-
Save rcrowley/88478 to your computer and use it in GitHub Desktop.
Drizzle dependency installer for Ubuntu Intrepid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Drizzle dependency installer for Ubuntu Intrepid | |
# Richard Crowley <[email protected]> | |
# | |
if [ "." != $(dirname "$0") ] ; then | |
echo "[deps.sh] you must run deps.sh from the directory it is in" >&2 | |
exit 1 | |
fi | |
# Newer Bazaar | |
# This is Ubuntu Intrepid-specific, see | |
# https://launchpad.net/~bzr/+archive/ppa | |
# for other versions | |
sudo sh -c 'echo "" >> /etc/apt/sources.list' | |
sudo sh -c 'echo "# Bazaar PPA" >> /etc/apt/sources.list' | |
sudo sh -c 'echo "deb http://ppa.launchpad.net/bzr/ppa/ubuntu intrepid main" \ | |
>> /etc/apt/sources.list' | |
sudo sh -c \ | |
'echo "deb-src http://ppa.launchpad.net/bzr/ppa/ubuntu intrepid main" \ | |
>> /etc/apt/sources.list' | |
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com \ | |
ece2800bacf028b31ee3657cd702bf6b8c6c1efd | |
sudo apt-get update | |
sudo apt-get install --no-install-recommends bzr bzrtools | |
# libdrizzle | |
bzr branch lp:libdrizzle | |
cd libdrizzle | |
./config/autorun.sh | |
./configure && make && sudo make install | |
cd .. | |
# drizzle dependencies | |
sudo apt-get install build-essential libpcre3-dev autoconf automake \ | |
bison libtool ncurses-dev libreadline-dev libz-dev libssl-dev \ | |
uuid-dev libpam0g gperf | |
# libprotobuf from Google because Ubuntu's is too old | |
# http://code.google.com/p/protobuf/ | |
wget http://protobuf.googlecode.com/files/protobuf-2.0.3.tar.gz | |
tar xzf protobuf-2.0.3.tar.gz | |
cd protobuf-2.0.3 | |
./configure && make && sudo make install | |
cd .. | |
rm -rf protobuf-2.0.3* | |
# libevent from monkey.org because Ubuntu's is too old | |
# http://monkey.org/~provos/libevent/ | |
wget http://monkey.org/~provos/libevent-1.4.9-stable.tar.gz | |
tar xzf libevent-1.4.9-stable.tar.gz | |
cd libevent-1.4.9-stable | |
./configure && make && sudo make install | |
cd .. | |
rm -rf libevent-1.4.9-stable* | |
# drizzle itself | |
bzr branch lp:drizzle | |
cd drizzle | |
./config/autorun.sh | |
./configure && make | |
cd .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment