Created
February 23, 2010 18:35
-
-
Save dsc/312535 to your computer and use it in GitHub Desktop.
Downloads, Builds and Installs MonetDB -- http://monetdb.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### MonetDB Installer for RHEL5 ### | |
# Script needs to be run as root if any any packages need installing. | |
# For more info, see: | |
# - http://monetdb.cwi.nl/MonetDB/Documentation/Linux-Installation.html#Linux-Installation | |
# MonetDB RPM's for RHEL5: | |
# - http://code.google.com/p/monetdb-rhel-5/downloads/list | |
# | |
# It's the right version, but I found them after I compiled it. | |
SRC="MonetDB-Nov2009-SuperBall-SP2" | |
PREFIX=${1:-/opt/local} | |
if test -d $SRC; then | |
cd $SRC | |
fi | |
if test ! -e "monetdb-install.sh"; then | |
wget 'http://monetdb.cwi.nl/downloads/sources/Nov2009-SP2/MonetDB-Nov2009-SuperBall-SP2.tar.bz2' | |
tar -xf "${SRC}.tar.bz2" | |
cd $SRC | |
fi | |
# Dependencies: | |
yum install automake && \ | |
yum install autoconf && \ | |
yum install zlib-devel && \ | |
yum install bzip2-devel && \ | |
yum install pcre-devel && \ | |
yum install openssl-devel && \ | |
yum install php-devel && \ | |
yum install libxml2-devel && \ | |
yum install perl && \ | |
yum install swig | |
test $? != 0 && exit 1 | |
# $ ./monetdb-install.sh --help | |
# usage: ./monetdb-install.sh < OPTS ... > | |
# | |
# where OPTS are: | |
# --prefix=path install into location path, defaults to $HOME/MonetDB | |
# --build=path use path as (temporary) build directory, defaults | |
# to /var/tmp/MonetDB-XXXXXXXXX | |
# --enable-sql build the MonetDB/SQL server | |
# --enable-xquery build the MonetDB/XQuery server | |
# --enable-geom build geom extension for MonetDB/SQL, this option | |
# implies --enable-sql | |
# --enable-template build template module for MonetDB extensions, this | |
# option requires nightly or cvs sources | |
# --enable-testing build the MonetDB testing suite necessary for running | |
# 'make check', Mtest.py or RunMtest | |
# --nightly=target download and install a nightly snapshot of the stable | |
# or current branch, target must be 'stable' or 'current' | |
# --cvs[=tag] checkout a CVS snapshot of the current branch or | |
# optionally given tag | |
# --enable-debug compile with debugging support via e.g. gdb | |
# --enable-optimise compile with high optimisation flags, enabling this | |
# option increases compilation time considerably but | |
# often yields in a faster MonetDB server | |
# --enable-optimize alias for --enable-optimise | |
# --quiet suppress output going to stdout | |
# --help this message | |
# --devhelp special help for developers | |
# --version show revision number and quit | |
./monetdb-install.sh --enable-sql --enable-xquery --enable-geom --enable-optimise --prefix=$PREFIX | |
# I specify --prefix as I don't want it to install at $HOME/MonetDB. | |
# I like --prefix=/opt/local/ would be wise, as the result looks like: | |
# | |
# [csadmin@d3 ~]$ ls ~/MonetDB | |
# bin etc include lib lib64 share var | |
# | |
# ...And there are several things I want on my $PATH: | |
# | |
# [csadmin@d3 ~]$ ls MonetDB/bin | |
# Mbeddedmal mclient monetdb monetdb-clients-config monetdb-sql-config msqldump | |
# Mbeddedsql5 merovingian monetdb5-config monetdb-config mserver5 stethoscope | |
# | |
# As I already have /opt/local/bin on $PATH for python2.6, this it seems good. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this! It was very useful