Drizzle on Centos 5.4

Clean install centos 5.4 with Development Tools and Development Libraries

yum groupinstall “Development Tools”
yum groupinstall “Development Libraries”

Setup the drizzle user account and allow it to sudo

/usr/sbin/visudo
uncomment %wheel ALL=(ALL) NOPASSWD: ALL
useradd drizzle
gpasswd -a drizzle wheel

Install Required Dependencies

yum install autoconf autoconf.noarch bison-devel.x86_64 bison.x86_64 bzr cpp.x86_64 e2fsprogs-devel.i386 e2fsprogs-devel.x86_64 gcc gcc-c++.x86_64 gcc.x86_ glib2-devel glibc-devel.x86_64 glibc.x86_64 gperf libevent-devel.x86_64 libstdc++.i386 libtool.x86_64 ncurses-devel.i386 ncurses-devel.x86_64 ncurses.x86_64 pcre-devel.x86_64 pcre.i386 pcre.x86_64 readline-devel.x86_64 readline.x86_64 zlib-devel.x86_64

Install Protobufs

wget http://protobuf.googlecode.com/files/protobuf-2.3.0.tar.gz
tar -xvf protobuf-2.3.0.tar.gz
cd protobuf-2.3.0
./configure
make
make install

Install bzr

wget http://launchpad.net/bzr/2.1/2.1.0b4/+download/bzr-2.1.0b4.tar.gz
tar -xvf bzr-2.1.0b4.tar.gz
cd bzr-2.1.0b4
python setup.py install

Make the Local bzr Repo

su – drizzle


mkdir ~/bzrwork
bzr init-repo –2a ~/bzrwork
cd ~/bzrwork

Build libdrizzle

bzr branch lp:libdrizzle
cd libdrizzle
./config/autorun.sh
./configure
make
sudo make install

Build Drizzle

cd ~/bzrwork
bzr branch lp:drizzle
cd drizzle
./config/autorun.sh
./configure
make
sudo make install

Run the tests

cd tests
./test-run

Configure and Start Drizzle

sudo mkdir /usr/local/var


sudo chown drizzle.drizzle /usr/local/var


cd /usr/local


/usr/local/sbin/drizzled –no-defaults –drizzle-protocol-port=9306 –basedir=$PWD –datadir=$PWD/var >> $PWD/var/drizzle.err 2>&1 &

Connect to drizzle



drizzle –port 9306

Advertisements
Drizzle on Centos 5.4