#!/bin/sh #set some variables RUNDIR='pwd' SOURCES=http://zori.aspuru.com/zori_files CVSROOT=okra.cchem.berkeley.edu:/usr/local/cvsroot CVS_RSH=ssh export ZORI_HOME=/Users/ric/Software/zori export CFLAGS=-I$ZORI_HOME/include export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ZORI_HOME/lib export PATH=$ZORI_HOME/bin:$PATH export ACLOCAL_FLAGS=$ACLOCAL_FLAGS:" -I $ZORI_HOME/share/aclocal " #make some space mkdir install zori mb #check out zori # cvs get mb #check for common things: lammpi and glib echo Zori requires glib_1.2 or newer echo glib-config --version; glib-config--version; echo echo Zori requires some version of mpi- checking for lammpi echo lamboot -V; lamboot -V #get everything that we shouldnt expect everyone to have cd install wget $SOURCES/zori_needs_4.5.04.tar . tar -xvf zori_needs_4.5.04.tar gunzip *.gz tar -xf gsl-1.4.tar; tar -xf hdf5-1.6.2.tar; tar -xf hdf5_hl-1.2.0.tar; #now compile these libraries export CFLAGS=-I$ZORI_HOME/include; export LDFLAGS=-L$ZORI_HOME/lib cd gettext-0.14.1; ./configure --prefix=$ZORI_HOME; make; make install; cd .. #-- OSX: *** ok *** cd popt-1.7; ./configure --prefix=$ZORI_HOME; make; make install; cd .. #-- OSX: problems with linking of test (dynamic linking) cd libxml2-2.6.0; ./configure --prefix=$ZORI_HOME; make; make install; cd .. #-- OSX: *** ok *** cd gsl-1.4; ./configure --prefix=$ZORI_HOME; make; make install; cd .. #-- OSX: *** ok *** cd hdf5-1.6.2; ./configure --prefix=$ZORI_HOME; make; make install; cd .. #-- OSX: *** ok *** cd pkgconfig-0.15.0; ./configure --prefix=$ZORI_HOME; make; make install; cd .. #--OSX: *** ok *** cd glib-2.2.3; ./configure --prefix=$ZORI_HOME; make; make install; cd .. #--OSX: *** ok *** # hdf5_hl: configure needs to see hdf5 cd hdf5_hl-1.2.0; ./configure --prefix=$ZORI_HOME; make; make install; cd .. #--OSX: *** ok *** export CFLAGS= ; export LDFLAGS= ; cd .. #now we can finally start compiling zori cd $ZORI_HOME/mb aclocal -I $ZORI_HOME/share/aclocal -I /sw/share/aclocal CC='mpicc -I${ZORI_HOME}/include -I${ZORI_HOME}/include/libxml2 -L${ZORI_HOME}/lib -lxml2' ./autogen.sh --prefix=${ZORI_HOME} --enable-debug make cd ..