[CIG-CS] MPI references in Pythia, trying to install pylith-0.8
Leif Strand
leif at geodynamics.org
Tue Nov 28 15:42:01 PST 2006
Rowena,
Pythia's 'configure' script expects compiler flags for the MPI*
variables; e.g.,
MPIINCLUDES="-I/opt/mpich/include"
MPILIBS="-L/opt/mpich/lib -lmpich"
However, I recommend that you avoid this problem altogether by
configuring Pythia without MPI. PyLith does not need Pythia's MPI
modules. So configure Pythia like this:
./configure --without-mpi
In fact, I highly recommend this, as this isn't the only Pythia-MPI road
block you are likely to encounter. (The Pythia 'configure' script has
some issues with MPICH2... or, more accurately, MPICH2 has some
C++/preprocessor-related issues which 'configure' does not automatically
work-around.)
--Leif
Rowena Lohman wrote:
> Hi all,
>
> It did turn out that my petsc problems had to do with a dead
> libgfortran link that is now fixed, thanks for helping me find that.
>
> Next problem: It isn't clear to me exactly how MPILIBS and
> MPIINCLUDES should be set for petsc. I started by setting them to the
> /lib and /bin directories that petsc created during mpich installation:
>
> MPILIBS=/u/vento0/rlohman/pylith-0.8/petsc-dev/externalpackages/mpich2-1.0.4p1/lib
> MPIINCLUDES=/u/vento0/rlohman/pylith-0.8/petsc-dev/externalpackages/mpich2-1.0.4p1/bin
>
> However, when I do this, pythia dies during ./configure with the
> following problem:
>
> configure:19916: g++ -o conftest -g -O2 conftest.cc
> /u/vento0/rlohman/pylith-0.8/petsc-dev/externalpackages/mpich2-1.0.4p1/lib
> >&5
> /u/vento0/rlohman/pylith-0.8/petsc-dev/externalpackages/mpich2-1.0.4p1
> /lib: file not recognized: Is a directory
>
> To me this looks like it expects MPILIBS to be a file, not a
> directory. However, I've tried replacing it with the name of the
> files in lib/ and it still dies at that point, looking for MPI_Init.
> I can send my whole config.log file if someone tells me what I should
> set for MPILIBS.
>
> Thanks again,
> Rowena
>
>
> --
> -----------------------------------
> Rowena Lohman
> MS 300-233
> Jet Propulsion Lab
> Pasadena, CA 91109
> 818-354-4253
> -----------------------------------
>
>------------------------------------------------------------------------
>
>_______________________________________________
>CIG-CS mailing list
>CIG-CS at geodynamics.org
>http://geodynamics.org/cgi-bin/mailman/listinfo/cig-cs
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://geodynamics.org/pipermail/cig-cs/attachments/20061128/205f3c81/attachment.html
More information about the CIG-CS
mailing list