Trond Norbye's Weblog

« Previous page | Main

http://blogs.sun.com/trond/date/20090206 Friday February 06, 2009

Compiling Drizzle on OpenSolaris

Drizzle is certainly in the wind these days. I hear people talking about it almost every day (guess I got geeky friends ;-)), so I decided I should write a small blog on how easy it is to build Drizzle on my pet; OpenSolaris.

To ensure that I don't miss a step in this guide, I decided to install a fresh installation of OpenSolaris 2008.11. With VirtualBox available I didn't have to reinstall one of my computers :-)

A default installation of OpenSolaris does not install everything you need to compile Drizzle (that wouldn't fit on a cd), and most normal users doesn't need development tools. Luckily you don't have to be a senior system administrator to install software on OpenSolaris.

So let's go ahead and install the dependencies we need:

trond@opensolaris:~$ pfexec pkg install ss-dev
trond@opensolaris:~$ pfexec pkg install SUNWgnu-gperf
trond@opensolaris:~$ pfexec pkg install SUNWlibevent

The pcre in OpenSolaris is newer than the one you normally find in other distributions, and in the new versions of pcre they have moved the headerfile pcre.h to pcre/pcre.h. Drizzle is not updated to look for the new header, so until that is fixed in Drizzle we can just use the following workaround:

trond@opensolaris:~$ pfexec ln -s pcre/pcre.h /usr/include/pcre.h

GNU readline support is mandatory in Drizzle, but the readline package for OpenSolaris is not available in the default repositories. The following commands will add another repository you may install packages from, and install the readline library:

trond@opensolaris:~$ pfexec pkg set-authority -O http://pkg.opensolaris.org/pending/ pending
trond@opensolaris:~$ pfexec pkg install readline5

Drizzle use Google Protocol buffers, and they are not available as an installable software package so we need to download and compile it ourself:

trond@opensolaris:~$ mkdir download && cd download
trond@opensolaris:~/download$ wget http://protobuf.googlecode.com/files/protobuf-2.0.3.tar.gz
trond@opensolaris:~/download$ tar xfz protobuf-2.0.3.tar.gz 
trond@opensolaris:~/download$ cd protobuf-2.0.3
trond@opensolaris:~/download/protobuf-2.0.3$ ./configure --disable-static --prefix=/usr
trond@opensolaris:~/download/protobuf-2.0.3$ gmake
trond@opensolaris:~/download/protobuf-2.0.3$ pfexec gmake install

Finally we need to download and compile Bazaar to check out the source code (unless you want to download a tar-ball somewhere)

trond@opensolaris:~/download$ wget --no-check-certificate https://launchpad.net/bzr/1.11/1.11/+download/bzr-1.11.tar.gz
trond@opensolaris:~/download$ tar xfz bzr-1.11.tar.gz
trond@opensolaris:~/download$ cd bzr-1.11
trond@opensolaris:~/download/bzr-1.11$ pfexec python setup.py install

Well, that's it. Now we just need to check out the source gode and compile it:

trond@opensolaris:~$ mkdir source && cd source
trond@opensolaris:~/source$ bzr branch lp:drizzle
trond@opensolaris:~/source$ cd drizzle
trond@opensolaris:~/source/drizzle$ ./config/autorun.sh
trond@opensolaris:~/source/drizzle$ ./configure --prefix=/opt/drizzle
trond@opensolaris:~/source/drizzle$ gmake all
trond@opensolaris:~/source/drizzle$ pfexec gmake install

http://blogs.sun.com/trond/date/20090118 Sunday January 18, 2009

Trondheim OpenSolaris User Group

Det er med stor glede jeg kan fortelle at vi har startet opp Trondheim OpenSolaris User Group (TrOSUG). Vi (Knut Anders, Jan Ståle og meg selv) har noen tanker om hva vi vil oppnå med brukergruppen, men vi er veldig interessert i å høre hva du er interessert i. (Jan Ståle skrev en intro-mail til gruppen med noen forslag).


Valid HTML! Valid CSS!

This is a personal weblog, I do not speak for my employer.