drizzle
Profile
Search
 
Hosted by The Rackspace Cloud
Compiling/MacOS X

Contents

Installing Drizzle on Mac OS X

Make sure you have installed:

- Google's Proto Buffers
- gettext for language support

Links to install Proto Buffers and gettext are here

Getting Bazaar

Download and install the latest dmg (e.g [1])

If this does not work, you can compile from source. Download the source from https://launchpad.net/bzr/+download

Package Dependencies

MacPorts

When using MacPorts

NOTE: if you have fink installed as well, there might some package conflicts from the ./configure script, one in particular I ran into was with the gperf package. It's better to use MacPorts for building the Drizzle project.

NOTE: also you can update your outdated packages with a, port -v upgrade outdated, before building to make sure your autotools and other packages are up to date.

# Update port definitions
port selfupdate
# See what's installed
port installed
# Install the ports we want
port install libevent
port install pcre
port install glib2
port install readline

Natively

You need libevent and libpcre installed on your Mac OS X machine. Check for latest versions, the following are specific examples at 2010-03-03

# libevent
curl -O http://monkey.org/~provos/libevent-1.4.9-stable.tar.gz
tar xvfz libevent-1.4.13-stable.tar.gz
cd libevent-1.4.13-stable
./configure
make
sudo make install
cd ..
# libpcre
curl -O http://superb-sea2.dl.sourceforge.net/project/pcre/pcre/8.01/pcre-8.01.tar.gz
tar xvfz pcre-8.01.tar.gz 
cd pcre-8.01
./configure
make
sudo make install
cd ..

Continue

Continue installing Drizzle with the next step: installing libdrizzle, the client protocol library.

Drizzle Configuration with MacPorts

First install libdrizzle, if you haven't already, and use the same --prefix for both:

LDFLAGS=-L/opt/local/lib ./configure --with-libprotobuf-prefix=/opt/local \
--with-libpcre-prefix=/opt/local --with-libevent-prefix=/opt/local --prefix=/some/deploy/dir