[cig-commits] r16546 - long/3D/SNAC/trunk
echoi at geodynamics.org
echoi at geodynamics.org
Tue Apr 13 07:11:11 PDT 2010
Author: echoi
Date: 2010-04-13 07:11:11 -0700 (Tue, 13 Apr 2010)
New Revision: 16546
Modified:
long/3D/SNAC/trunk/README
Log:
Added a little more information about setting env. vars.
Modified: long/3D/SNAC/trunk/README
===================================================================
--- long/3D/SNAC/trunk/README 2010-04-13 13:51:20 UTC (rev 16545)
+++ long/3D/SNAC/trunk/README 2010-04-13 14:11:11 UTC (rev 16546)
@@ -1,15 +1,11 @@
-Some customization is required for installation of SNAC on some platforms.
+-- For installation, see the user manual or INSTALL for quick start.
-1. Mac OS X Leopard (and probably Snow Leopard)
+-- Some customization is required for installation of SNAC on some platforms.
+The recommended set of environment variables is given below.
+Note that some values need to be changed according to a user's setting.
-The following steps are recommended in order to ensure that all the relevant utilities, libraries and environment variables are set up as needed by SNAC.
- - install XCode
- - install MacPorts (and Porticus if you want the GUI)
- - using MacPorts/Porticus, install gsl and mpich2 (don't choose a variant)
- - set a bunch of environment variables to help the configure script find them
-
-The recommended setting of environment variables is:
-
+In csh:
+======================================================
setenv MPI_DIR /opt/local
setenv MPI_BINDIR ${MPI_DIR}/bin
setenv MPI_INCDIR ${MPI_DIR}/include/mpich2
@@ -17,21 +13,50 @@
setenv MPI_RUN ${MPI_BINDIR}/mpirun
setenv PATH ${MPI_BINDIR}:{$PATH}
setenv LD_LIBRARY_PATH ${MPI_LIBDIR}:{LD_LIBRARY_PATH}
+setenv CC mpicc
+setenv CXX mpicxx
+
setenv GSL_DIR /opt/local
+
setenv DL_DIR /usr
+
setenv SNAC_DIR $HOME/Src/SNAC
-setenv SNAC_BLDDIR ${SNAC_DIR}/build-optimised
+setenv SNAC_BLDDIR ${SNAC_DIR}/build
setenv SNAC_BINDIR ${SNAC_BLDDIR}/bin
setenv SNAC_INCDIR ${SNAC_BLDDIR}/include
setenv SNAC_LIBDIR ${SNAC_BLDDIR}/lib
setenv PATH ${SNAC_BINDIR}:{$PATH}
setenv LD_LIBRARY_PATH ${SNAC_LIBDIR}:{LD_LIBRARY_PATH}
-setenv CC mpicc
-setenv CXX mpicxx
+======================================================
-An onerous little change is also required to two Makefiles:
- - remove "-u __dummy" EXPORT_DYNAMIC_LFLAGS in StGermain/Makefile.system
- - remove "-u __dummy" EXPORT_DYNAMIC_LFLAGS in Snac/Makefile.system
-This change can/should be made earlier upon detection of the Darwin kernel and Leopard/Snow Leopard (?)
+In bash:
+======================================================
+export MPI_DIR=/opt/local
+export MPI_BINDIR=${MPI_DIR}/bin
+export MPI_INCDIR=${MPI_DIR}/include/mpich2
+export MPI_LIBDIR=${MPI_DIR}/lib
+export MPI_RUN=${MPI_BINDIR}/mpirun
+export PATH=${MPI_BINDIR}:{$PATH}
+export LD_LIBRARY_PATH=${MPI_LIBDIR}:{LD_LIBRARY_PATH}
+export CC=mpicc
+export CXX=mpicxx
+export GSL_DIR=/opt/local
+export SNAC_DIR=${HOME}/Src/SNAC
+export SNAC_BLDDIR=${SNAC_DIR}/build
+export SNAC_BINDIR=${SNAC_BLDDIR}/bin
+export SNAC_INCDIR=${SNAC_BLDDIR}/include
+export SNAC_LIBDIR=${SNAC_BLDDIR}/lib
+export PATH=${SNAC_BINDIR}:{$PATH}
+export LD_LIBRARY_PATH=${SNAC_LIBDIR}:{LD_LIBRARY_PATH}
+======================================================
+
+
+-- For Mac OS X Leopard (and probably Snow Leopard)
+
+The following steps are recommended in order to ensure that all the relevant utilities, libraries and environment variables are set up as needed by SNAC.
+ - install XCode
+ - install MacPorts (and Porticus if you want the GUI)
+ - using MacPorts/Porticus, install gsl and mpich2 (don't choose a variant)
+ - set a bunch of environment variables to help the configure script find them
More information about the CIG-COMMITS
mailing list