Skip to content

Instantly share code, notes, and snippets.

@rcrowley
Created April 1, 2009 00:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcrowley/88478 to your computer and use it in GitHub Desktop.
Save rcrowley/88478 to your computer and use it in GitHub Desktop.
Drizzle dependency installer for Ubuntu Intrepid
#!/bin/sh
#
# Drizzle dependency installer for Ubuntu Intrepid
# Richard Crowley <r@rcrowley.org>
#
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