Instructions on how to build and setup a HDF5/SRB server
This instruction will show you how to build SRB with HDF5 support from the source code.
OBTAIN SOURCE CODE
1. DOWNLOAD SRB SOURCE CODE
- a) Download the SRB 3.4.x source code from - -
http://www.sdsc.edu/srb/tarfiles/main.html - b) Decrypt the tar file (I downloaded the openssl tar file)
'openssl enc -d -bf-cbc -in SRB3.4.0rele_bf.tar -out SRB3.4.0.tar' - c) Download the build/install script install.pl (chmod +x install.pl)
2. DOWNLOAD POSTGRES SOURCE FILES
- a) postgresql-7.4.12.tar.gz from - -
http://www.postgresql.org/ - b) psqlodbc-07.03.0200.tar.gz from - -
http://www.postgresql.org/ftp/odbc/versions/src/(tried psqlodbc-07.03.0260.tar.gz, it didn't work)
3. DOWNLOAD HDF5 LIBRARY FROM
- http://hdf.ncsa.uiuc.edu/HDF5/release/obtain5.html
- a) hdf5-1.6.5.tar.gz
- b) szip-2.0.tar.gz
- c) zlib-1.2.1.tar.gz
COMPILE AND INSTALL LIBRARIES
1. COMPILE AND INSTALL ZLIB
- a) mkdir -p lib/zlib
- b) tar -zxvf zlib-1.2.1.tar.gz ; cd zlib-1.2.1
- c) ./configure --prefix=/home/srb/lib/zlib
- d) make;make install
2. COMPILE AND INSTALL SZIP
- a) mkdir -p lib/szip
- b) tar -zxvf szip-2.0.tar.gz ; cd szip-2.0
- c) ./configure --prefix=/home/srb/lib/szip --disable-shared --enable-production
- d) make ; make install
NOTE: if you get error as burst_szip.o(.text+0x760): In function `random_float_scanline': : undefined reference to `sin' change sqrt(37.927) to sinh(37.927) in configure and run the configure again
3. COMPILE AND INSTALL HDF5
- a) mkdir -p lib/hdf5
- b) tar -zxvf hdf5-1.6.5.tar.gz ; cd hdf5-1.6.5
- c) ./configure --prefix=/home/srb/lib/hdf5 --disable-shared --disable-debug --enable-production --disable-hl --with-zlib=/home/srb/lib/zlib --with-szlib=/home/srb/lib/szip
- d) make;make install
4. MODIFY INSTALL.PL SCRIPT FOR EASY BUILD/INSTALL
- a) add the following line after $SRB_CONFIGURE_OPTIONS_JAVA="";
$HDF5_SRB_CONFIGURE_OPTIONS="--enable-hdf5 --enable-hdf5home=/home/srb/lib/hdf5 --enable-szip=/home/srb/lib/szip --enable-zlib=/home/srb/lib/zlib"; - b) add $HDF5_SRB_CONFIGURE_OPTIONS to $SRB_CONFIGURE_OPTIONS such as,
$SRB_CONFIGURE_OPTIONS="--enable-installdir=$SRB_INSTALL_DIR --enable-psgmcat --enable-psghome=$postgresInstallDir $HDF5_SRB_CONFIGURE_OPTIONS"; - c) setup the following or what else you want to change the default setting
$SRB_FILE="SRB3.4.0.tar";
$SRB_FILE_ALREADY_DECRYPTED=1;
$SRB_DIR="";
$POSTGRES_FILE="postgresql-7.4.12.tar.gz";
$ODBC_FILE="psqlodbc-07.03.0200.tar.gz";
$DB_NAME="MCAT";
$YOUR_ADMIN_NAME="srbAdmin";
$YOUR_POSTGRES_ADMIN_NAME="$YOUR_ADMIN_NAME";
$YOUR_ADMIN_PW="srbdemo05"; - d) run ./install.pl
IF everything goes OK, you should have a running SRB server with HDF5 support
S-COMMANDS
Download and build/install SRB client on any of your machines
If you are using the same machine as the server, the S-command client is at SRB3_4_0/utilities/bin, add the S-command path to your enviroment path
make directory ~/.srb, you need two files under ~/.srb
MdasAuth
#===============file content ===============
srbdemo05
.MdasEnv
#===============file content ===============
mdasCollectionName '/A/home/srbAdmin.demo'
mdasCollectionHome '/A/home/srbAdmin.demo'
mdasDomainName 'demo'
mdasDomainHome 'demo'
srbUser 'srbAdmin'
srbHost 'stanley.ncsa.uiuc.edu'
#srbPort '5544'
defaultResource 'demoResc'
#AUTH_SCHEME 'PASSWD_AUTH'
#AUTH_SCHEME 'GSI_AUTH'
AUTH_SCHEME 'ENCRYPT1'
Try 'Sinit' to start the connection
'Sls' to look at what files at the server
and more
'Sexit' when you are done
- - Last modified:September 23rd 2009
