[cig-commits] r11223 - short/3D/PyLith/trunk/doc/install
brad at geodynamics.org
brad at geodynamics.org
Wed Feb 20 22:23:51 PST 2008
Author: brad
Date: 2008-02-20 22:23:51 -0800 (Wed, 20 Feb 2008)
New Revision: 11223
Added:
short/3D/PyLith/trunk/doc/install/MacBookPro_Aagaard.txt
Removed:
short/3D/PyLith/trunk/doc/install/PowerbookPro_Aagaard.txt
Log:
Worked on installation instructions for MacBookPro.
Copied: short/3D/PyLith/trunk/doc/install/MacBookPro_Aagaard.txt (from rev 11222, short/3D/PyLith/trunk/doc/install/PowerbookPro_Aagaard.txt)
===================================================================
--- short/3D/PyLith/trunk/doc/install/MacBookPro_Aagaard.txt (rev 0)
+++ short/3D/PyLith/trunk/doc/install/MacBookPro_Aagaard.txt 2008-02-21 06:23:51 UTC (rev 11223)
@@ -0,0 +1,280 @@
+I place applications that are rarely updated in /sw/tools (with Fink
+stuff in /sw). For CIG source code, I separate the source code, build
+directories, and installed code. The source code sits in
+$HOME/src/cig, I build the packages under $HOME/scratch/build/cig, and
+install the packages to $HOME/tools/cig.
+
+I use the bash shell and place all software package environment
+variables in a .bash.tools file that is read by the .bashrc file.
+
+To make things easier, I create environment variables TOOLS_DIR,
+CIG_DIR, and TOOLS_FORMAT. The TOOLS_FORMAT variable makes it easier
+to maintain multiple copies of packages built with different options
+(e.g., different compilers and different levels of optimization).
+
+ export $TOOLS_DIR=/sw/tools
+ export $CIG_DIR=$HOME/tools/cig
+ export TOOLS_FORMAT=gcc-4.0
+
+ export CIG_INCDIR=${CIG_DIR}/include
+ export CIG_LIBDIR=${CIG_DIR}/lib
+ PATH=$PATH:${CIG_DIR}/bin
+ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CIG_LIBDIR}
+ export PYTHONPATH=${PYTHONPATH}:${CIG_LIBDIR}/python${PYTHON_VERSION}/site-packages
+
+1. X and Xcode
+
+ X and Xcode are on the Apple OSX install disc 1. X is under
+ "additional options."
+
+2. Install Fink (http://www.finkproject.org/)
+
+3. Install Fink Commander
+ (http://sourceforge.net/project/showfiles.php?group_id=48896&package_id=42095)
+
+4. Install Fink packages
+
+ Install the following Fink binary packages:
+
+ svn-client
+ autoconf2.5
+ automake1.9
+ libtool4
+ netcdf
+
+5. Install python 2.5.1 (http://www.python.org).
+
+ a. Download the universal installer.
+ b. Install the package by double clicking on MacPython.mpkg.
+ c. Update environment variables.
+
+ export PYTHON_VERSION=2.5
+ PATH=/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}
+
+6. Install the Scipy superpack (http://trichech.us/?page_id=5).
+
+ This includes numpy, scipy, and matplotlib.
+
+ a. Download the installer and install the package by double clicking
+ on the .mpkg file.
+
+7. Install mercurial (http://www.selenic.com/mercurial/wiki/)
+
+ a. Download the package to $HOME/sw/tools/mercurial-0.9.4.
+ b. Install package.
+
+ python setup.py install --prefix=$TOOLS_DIR/mercurial-0.9.4/${TOOLS_FORMAT}
+
+ c. Set environment variables.
+
+ MERCURIAL_DIR=${TOOLS_DIR}/mercurial-0.9.4/${TOOLS_FORMAT}
+ export PATH=${PATH}:${MERCURIAL_DIR}/bin
+ export PYTHONPATH=${PYTHONPATH}:${MERCURIAL_DIR}/lib/python${PYTHON_VERSION}/site-packages
+
+8. Install MPICH2 (http://www.mcs.anl.gov/research/projects/mpich2/)
+
+ a. Untar the source and then run configure, build, and install.
+
+ ./configure --with-arch=Darwin --disable-f90 --enable-css --prefix=${TOOLS_DIR}/mpich2-1.0.5/${TOOLS_FORMAT} --enable-g=none --enable-fast --disable-weak-symbols --enable-shared-libx=osx-gcc
+ make
+ make install
+
+ b. Verify the shared libraries (lib*.dyllib) are created.
+ c. If any of the dylib files are missing, create them by hand from the
+ static libraies.
+
+ export MPI_DIR=$TOOLS_DIR/mpich2-1.0.5/${TOOLS_FORMAT}
+ PATH=$PATH:$MPI_DIR/bin
+ export MANPATH=$MPI_DIR/man:$MANPATH
+ export MPI_INCDIR=$MPI_DIR/include
+ export MPI_LIBDIR=$MPI_DIR/lib
+ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MPI_LIBDIR}
+
+9. Install ParMetis (http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview)
+
+ a. Untar the source and edit the Makefile.
+ b. Set the CC, COPTIONS, INCDIR, LD, and LIBDIR variables.
+
+ CC = gcc
+ COPTIONS = -fPIC
+ INCDIR = -I${MPI_INCDIR}
+ LD = gcc
+ LIBDIR = -L${MLI_LIBDIR} -lmpich -lpmpich
+
+ c. Set environment variables.
+
+ PARMETIS_DIR=$TOOLS_DIR/parmetis-3.1/${TOOLS_FORMAT}
+ export PARMETIS_INCDIR=$PARMETIS_DIR/include
+ export PARMETIS_LIBDIR=$PARMETIS_DIR/lib
+ export PARMETIS_LIBS="-lparmetis -lmetis"
+ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${PARMETIS_LIBDIR}
+
+10. Install cppunit (http://cppunit.sourceforge.net/cppunit-wiki)
+
+ a. Untar the source and run configure, build, and install.
+
+ ./configure --prefix=/sw/tools/cppunit-1.12.0/gcc-4.0
+ make
+ make install
+
+ b. Set environment variables.
+
+ CPPUNIT_DIR=${TOOLS_DIR}/cppunit-1.12.0/${TOOLS_FORMAT}
+ PATH=${PATH}:${CPPUNIT_DIR}/bin
+ export CPPUNIT_LIBDIR=${CPPUNIT_DIR}/lib
+ export CPPUNIT_INCDIR=${CPPUNIT_DIR}/include
+ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CPPUNIT_LIBDIR}
+
+11. Install FIAT (http://www.fenics.org/wiki/FIAT)
+
+ a. Install FIAT.
+
+ python setup.py install --prefix=$TOOLS_DIR/fiat-0.3.1/${TOOLS_FORMAT}
+
+ b. Set environment variables.
+
+ FIAT_DIR=${TOOLS_DIR}/fiat-0.3.1/${TOOLS_FORMAT}
+ PYTHONPATH=${PYTHONPATH}:${FIAT_DIR}/lib/python${PYTHON_VERSION}/site-packages
+
+12. Install the development version of PETSc
+ (http://www-unix.mcs.anl.gov/petsc/petsc-as/)
+
+ a. Clone the source repository.
+
+ hg clone http://petsc.cs.iit.edu/petsc/petsc-dev
+ cd petsc-dev/config
+ hg clone http://petsc.cs.iit.edu/petsc/BuildSystem BuildSystem
+
+
+ b. Set PETSC_ARCH and PETSC_DIR environment variables.
+
+ export PETSC_DIR=${TOOLS_DIR}/petsc-dev
+ export PETSC_ARCH=osx_${TOOLS_FORMAT}_debug
+
+ c. Configure PETSc, build, and test.
+
+ ARCH_FLAGS="--PETSC_ARCH=osx_${TOOLS_FORMAT}_debug --with-debugging=1"
+ LANG_FLAGS="--with-clanguage=c++"
+ BUILD_FLAGS="--with-mpi-compilers=0 --with-gnu-compilers=1 --with-shared=1 --with-dynamic=1 --with-64-bit-points=1 --with-large-file-io=1 --CC=gcc --CXX=g++"
+ MPI_FLAGS="--with-mpi-dir=/sw/tools/mpich2-1.0.5/gcc-4.0 --with-mpi-shared=0"
+ OPTIONS="--with-lgrind=0 --download-tetgen"
+ PART_FLAGS="--with-chaco=1 --download-chaco=1 --with-parmetis=1 --with-parmetis-dir=/sw/tools/parmetis-3.1/gcc-4.0"
+ SIEVE_FLAGS="--with-sieve=1 --with-boost=1 --download-boost=1"
+ config/configure.py ${ARCH_FLAGS} ${LANG_FLAGS} ${BUILD_FLAGS} ${MPI_FLAGS} ${OPTIONS} ${PART_FLAGS} ${SIEVE_FLAGS} ${EXTRA_FLAGS}
+ make
+ make test
+
+13. Install Pyrex (http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/)
+
+ Versions up to and including 0.9.5.1 are known to work.
+
+ a. Untar and install.
+
+ python setup.py install --prefix=${TOOLS_DIR}/pyrex-0.9.5.1/${TOOLS_FORMAT}
+
+ b. Update environment variables
+
+ PYREX_DIR=${TOOLS_DIR}/pyrex-0.9.5.1/${TOOLS_FORMAT}
+ export PYTHONPATH=${PYTHONPATH}:${PYREX_DIR}/lib/python${PYTHON_VERSION}/site-packages
+ export PYTHONPATH=${PYTHONPATH}:${PYREX_DIR}/bin
+ export PATH=${PATH}:${PYREX_DIR}/bin
+
+14. Install CIG's version of pyrexembed.
+
+ a. Download the source code from the SVN repository.
+
+ svn co http://geodynamics.org/svn/cig/cs/pyrexembed/trunk pyrexembed
+
+ b. Install the software.
+
+ python setup.py install --prefix=${CIG_DIR}
+
+15. Install pythia.
+
+ a. Download the source code from the SVN repository.
+
+ svn co svn list http://geodynamics.org/svn/cig/cs/pythia/trunk pythia
+
+ b. Install the software.
+
+ python setup.py install --prefix=${CIG_DIR}
+
+ c. Set environment variables.
+
+ export PYTHIA_INCDIR=${CIG_INCDIR}/pythia-0.8
+
+16. Install nemesis.
+
+ a. Download the source code from the SVN repository.
+
+ svn co svn list http://geodynamics.org/svn/cig/cs/nemesis/trunk nemesis
+
+ b. Create the configure script.
+
+ autoreconf -if
+
+ c. Run configure, build, and install.
+
+ ./configure --prefix=${CIG_DIR} CPPFLAGS="-I${CIG_INCDIR} -I${MPI_INCDIR}" LDFLAGS="-L${CIG_LIBDIR} -L${MPI_LIBDIR}" LIBS="-lpmpich -lmpich" CC=gcc CXX=g++
+ make
+ make install
+
+ If you get an error about the architecture, edit libtool and
+ delete "-arch ppc" or "-arch intel", which ever one is not for
+ your machine.
+
+17. Install PROJ.4 (http://www.remotesensing.org/proj/)
+
+ a. Download the source code AND the datum shifts (proj-datumgrid-1.3.zip).
+
+ b. Untar the source code and unzip the datum shifts in the nad directory.
+
+ c. Run configure and build.
+
+ ./configure --prefix=${TOOLS_DIR}/proj-4.5.0/gcc-4.0
+ make
+ make install
+
+ d. Set environment variables.
+
+ export PROJ4_VERSION=4.5.0
+ PROJ4_DIR=${TOOLS_DIR}/proj-${PROJ4_VERSION}/${TOOLS_FORMAT}
+ export PROJ4_LIBDIR=${PROJ4_DIR}/lib
+ export PROJ4_INCDIR=${PROJ4_DIR}/include
+ PATH=${PATH}:${PROJ4_DIR}/bin
+ export MANPATH=${MANPATH}:${PROJ4_DIR}/man
+
+18. Install spatialdata.
+
+ a. Download the source code from the SVN repository.
+
+ svn co svn list http://geodynamics.org/svn/cig/cs/spatialdata-0.1/trunk spatialdata
+
+ b. Create the configure script.
+
+ autoreconf -if
+
+ c. Run configure, build, install, and the unit tests.
+
+ ./configure --enable-testing --enable-pythia --prefix=${CIG_DIR} CPPFLAGS="-I${PROJ4_INCDIR} -I${CPPUNIT_INCDIR} -I${CIG_INCDIR}" LDFLAGS="-L${PROJ4_LIBDIR} -L${CPPUNIT_LIBDIR} -L${CIG_LIBDIR} " LIBS="" CC=gcc CXX=g++
+ make
+ make install
+ make check
+
+19. Install PyLith.
+
+ a. Download the source code from the SVN repository.
+
+ svn co svn list http://geodynamics.org/svn/cig/short/3D/PyLith/trunk pylith
+
+ b. Create the configure script.
+
+ autoreconf -if
+
+ c. Run configure, build, install, and the unit tests.
+
+ ./configure --enable-testing --enable-tetgen --enable-cubit --prefix=${CIG_DIR} CPPFLAGS="-I${PROJ4_INCDIR} -I${CPPUNIT_INCDIR} -I${CIG_INCDIR} -I/sw/include" LDFLAGS="-L${PROJ4_LIBDIR} -L${CPPUNIT_LIBDIR} -L${CIG_LIBDIR} -L/sw/lib" LIBS="" CC=gcc CXX=g++ CFLAGS="-g -O" CXXFLAGS="-g -O"
+ make
+ make install
+ make check
+
Deleted: short/3D/PyLith/trunk/doc/install/PowerbookPro_Aagaard.txt
===================================================================
--- short/3D/PyLith/trunk/doc/install/PowerbookPro_Aagaard.txt 2008-02-21 01:25:34 UTC (rev 11222)
+++ short/3D/PyLith/trunk/doc/install/PowerbookPro_Aagaard.txt 2008-02-21 06:23:51 UTC (rev 11223)
@@ -1,79 +0,0 @@
-1. X and Xcode
-
- X and Xcode are on the Apple OSX install disc 1. X is under
- "additional options."
-
-2. Install Fink (http://www.???)
-
-3. Install Fink Commander (http://www.???)
-
-4. Install Fink packages
-
- Install the following Fink binary packages:
-
- svn-client
- autoconf2.5
- automake1.9
- libtool4
- netcdf
-
-5. Install python 2.5.X
-
- a. Download the package from http://www.python.org.
- b. Install the package by double clicking on ??.
-
-6. Create directories for source code and installed tools.
-
- I place applications that are rarely updated in /sw/tools (with Fink
- stuff in /sw). For CIG source code, I separate the source code,
- build directories, and installed code. The source code sits in
- $HOME/src/cig, I build the packages under ~/scratch/build/cig, and
- install the packages to $HOME/tools/cig.
-
- In set the following environment variables: TOOLS_DIR, CIG_DIR, and
- PYTHON_VERSION. Using bash shell:
-
- export $TOOLS_DIR=/sw/tools
- export $CIG_DIR=$HOME/tools/cig
-
-7. Install mercurial (http://www.???)
-
- a. Download the package to $HOME/sw/tools/mercurial-???
- b. Install package.
-
- python setup.py install --prefix=$TOOLS_DIR/mercurial-???
-
- c. Set environment variables.
-
- MERCURIAL_DIR=$TOOLS_DIR/mercurial-???
- export PYTHONPATH=$PYTHONPATH:$MERCURIAL_DIR/lib/python$PYTHON_VERSION/site-packages
-
- PYTHONPATH
- a. Move to the source directory.
-
- cd /sw/tools
-mercurial
-
-MPICH2
-
-ParMetis
-
-cppunit
-
-FIAT
-
-PETSc
-
-Pyrex??
-
-pyrexembed
-
-pythia
-
-nemesis
-
-spatialdata
-
-pylith
-
-pytables
More information about the cig-commits
mailing list