Wednesday, February 08, 2006

Setting up NDB - Installing from RPM SRC

So, since many of the pre-compiled provided by dev.mysql.com/downloads are not what I'm looking for I decided to make my own RPM packages.

Here is my install script

!/bin/bash

export CC=/usr/bin/gcc32
export CXX=/usr/bin/gcc32
export LD_LIBARY_PATH=$LD_LIBARY_PATH:/lib64:/usr/lib64
export CFLAGS="-O3 -static -fomit-frame-pointer -ffixed-ebp"
export CXXFLAGS="-03 -felide-constructors -fno-exceptions -fno-rtti"

rpmbuild -ba mysql-5.0.18.spec

This is on a RHAS-4.0 .6.9-22.12.y1-64 #5 SMP Fri Nov 4 13:39:56 PST 2005 x86_64 x86_64 x86_64 GNU/Linux
Using

libtool-libs-1.5.6-4.EL4.1
libtool-1.5.6-4.EL4.1
autoconf-2.59-5
automake17-1.7.9-5
automake-1.9.2-3

I also changed some of the spec options as well, I like static builds, dynamic builds do not provide as much performance and are subject to failure when a lib changes.
#
BuildMySQL "--disable-shared %if %{STATIC_BUILD}
--with-mysqld-ldflags='-all-static' --with-client-ldflags='-all-static' $USE_OTHER_LIBC_DIR %else
--with-zlib-dir=bundled %endif
--with-comment=\"MySQL Community Edition - Flickr\" --with-server-suffix='%{server_suffix}' --with-archive-storage-engine --with-innodb --with-big-tables --with-ndbcluster --with-federated-storage-engine --with-big-tables"





compile time takes about 30 min now the next step is to set NDB up.

0 Comments:

Post a Comment

<< Home