@@ -25,6 +25,8 @@ out the PyLith and PETSc source code from the Git repositories
2525(requires git be installed); only use this option if you need the
2626bleeding edge versions and are willing to rebuild frequently.
2727
28+ If you encounter trouble during the installation, see the
29+ TROUBLESHOOTING section at the end of this file.
2830
2931======================================================================
3032System Requirements
@@ -62,7 +64,13 @@ IMPORTANT: We *STRONGLY* recommend that you run the configure script
6264 in a different directory from the PyLith Installer source code. We
6365 recommend creating a build directory (for example,
6466 $HOME/build/pylith) where you build any software with a subdirectory
65- for PyLith.
67+ for PyLith.
68+
69+ IMPORTANT: We also *STRONGLY* recommend that you install PyLith and
70+ its dependencies to its own directory (for example
71+ --prefix=$HOME/pylith). This makes it easier to start over should
72+ you encounter an error, in addition to managing multiple versions or
73+ different builds.
6674
6775WARNING: If you need to reconfigure the installer, then you should
6876 remove all of your build and install files *BEFORE* running
@@ -122,14 +130,14 @@ STEP 1 - Download and unpack the installer
122130
123131Download the installer.
124132
125- http://www.geodynamics.org/cig/software/pylith/pylith-installer-2.0.3 -0.tgz
133+ http://www.geodynamics.org/cig/software/pylith/pylith-installer-2.1.0 -0.tgz
126134
127135Untar the source code for the installer:
128136
129137 mkdir -p $HOME/src/pylith
130138 cd $HOME/src/pylith
131- mv $HOME/Downloads/pylith-installer-2.0.3 -0.tgz
132- tar -zxf pylith-installer-2.0.3 -0.tgz
139+ mv $HOME/Downloads/pylith-installer-2.1.0 -0.tgz
140+ tar -zxf pylith-installer-2.1.0 -0.tgz
133141
134142
135143----------------------------------------------------------------------
@@ -152,7 +160,7 @@ need to be built.
152160
153161Run configure with --help to see all of the command line arguments.
154162
155- $HOME/src/pylith/pylith-installer-2.0.3 -0/configure --help
163+ $HOME/src/pylith/pylith-installer-2.1.0 -0/configure --help
156164
157165-------
158166DEFAULT
@@ -164,7 +172,7 @@ DEFAULT
164172 * MPI
165173
166174 mkdir -p $HOME/build/pylith
167- $HOME/src/pylith/pylith-installer-2.0.3 -0/configure \
175+ $HOME/src/pylith/pylith-installer-2.1.0 -0/configure \
168176 --with-make-threads=2 \
169177 --prefix=$HOME/pylith
170178
@@ -178,7 +186,7 @@ WITHOUT FORTRAN
178186 * MPI
179187
180188 mkdir -p $HOME/build/pylith
181- $HOME/src/pylith/pylith-installer-2.0.3 -0/configure \
189+ $HOME/src/pylith/pylith-installer-2.1.0 -0/configure \
182190 --with-fortran=no \
183191 --with-make-threads=2 \
184192 --petsc_options="--download-chaco=1 --download-c-blas-lapack=1" \
@@ -202,7 +210,7 @@ DESKTOP-LINUX-MINIMAL
202210 * cppunit
203211
204212 mkdir -p $HOME/build/pylith
205- $HOME/src/pylith/pylith-installer-2.0.3 -0/configure \
213+ $HOME/src/pylith/pylith-installer-2.1.0 -0/configure \
206214 --disable-cppunit \
207215 --disable-numpy \
208216 --disable-proj4 \
@@ -222,7 +230,7 @@ DESKTOP-LINUX-OPENMPI
222230 * C, C++, Fortran compilers
223231
224232 mkdir -p $HOME/build/pylith
225- $HOME/src/pylith/pylith-installer-2.0.3 -0/configure \
233+ $HOME/src/pylith/pylith-installer-2.1.0 -0/configure \
226234 --enable-python \
227235 --enable-mpi=openmpi \
228236 --with-make-threads=2 \
@@ -258,7 +266,7 @@ DESKTOP-DARWIN
258266 With Fortran support:
259267
260268 mkdir -p $HOME/build/pylith
261- $HOME/src/pylith/pylith-installer-2.0.3 -0/configure \
269+ $HOME/src/pylith/pylith-installer-2.1.0 -0/configure \
262270 --enable-gcc=fortran \
263271 --enable-python \
264272 --enable-mpi=openmpi \
@@ -288,7 +296,7 @@ CLUSTER
288296 * MPI
289297
290298 mkdir -p $HOME/build/pylith
291- $HOME/src/pylith/pylith-installer-2.0.3 -0/configure \
299+ $HOME/src/pylith/pylith-installer-2.1.0 -0/configure \
292300 --enable-python \
293301 --with-make-threads=2 \
294302 --prefix=$HOME/pylith
@@ -314,7 +322,7 @@ DEVELOPER
314322 * Mercurial
315323
316324 mkdir -p $HOME/build/pylith
317- $HOME/src/pylith/pylith-installer-2.0.3 -0/configure \
325+ $HOME/src/pylith/pylith-installer-2.1.0 -0/configure \
318326 --with-pylith-git=master \
319327 --with-make-threads=2 \
320328 --prefix=$HOME/pylith
@@ -400,6 +408,27 @@ automatically every time you open a shell.
400408TROUBLESHOOTING
401409======================================================================
402410
411+ ----------------------------------------------------------------------
412+ Hints
413+ ----------------------------------------------------------------------
414+
415+ 1. Did you forget STEP 3?
416+
417+ If you added the PyLith environment variables to your shell setup
418+ (.bashrc), check to make sure the PyLith directory is listed before
419+ other directories in your PATH, LD_LIBRARY_PATH (for Linux),
420+ DYLD_LIBRARY_PATH (for Darwin), and PYTHONPATH.
421+
422+ 2. If you run into an error and change something (compiler,
423+ environment variable, etc), you should reconfigure and rebuild.
424+
425+ a. Remove the build and install directories ($HOME/build/pylith and
426+ $HOME/pylith).
427+
428+ rm -r $HOME/build/pylith and $HOME/pylith
429+
430+ b. Try again starting at STEP 2.
431+
403432----------------------------------------------------------------------
404433numpy fails to build due to a blas/lapack problem
405434----------------------------------------------------------------------
@@ -511,4 +540,4 @@ make: *** [load.o] Error 1
511540A fix is to insert the line
512541
513542#include <config.h>
514- above the "#include <stdlib.h>" statement near the beginning of ncgen3/genlib.h.
543+ above the "#include <stdlib.h>" statement near the beginning of ncgen3/genlib.h.
0 commit comments