[petsc-users] PETSc config error

Jed Brown jedbrown at mcs.anl.gov
Wed Sep 7 19:57:27 CDT 2011


On Thu, Sep 8, 2011 at 02:01, amrit poudel <amrit_pou at hotmail.com> wrote:

>
>  ./config/configure.py --prefix=/home/amrit/PETSc
> --with-scalar-type=complex --with-batch --with-cc=/home/amrit/MPI/bin/mpicc
> --with-fc=/home/amrit/MPI/bin/mpif77
>
>
> ===============================================================================
>              Configuring PETSc to compile on your
> system
>
> ===============================================================================
> TESTING: configureMPIEXEC from
> config.packages.MPI(config/BuildSystem/config/pac*******************************************************************************
>          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for
> details):
>
> -------------------------------------------------------------------------------
> Must give a default value for known-mpi-shared since executables cannot be
> run


You need to determine whether your MPI implementation uses static or shared
libraries, then pass --known-mpi-shared=1 if it shared and
--known-mpi-shared=0 otherwise. You can determine whether it is shared by
examining the libraries.

mpicc -show
ls /home/amrit/MPI/lib                  # look for *.a for shared libs and
*.so or *.dylib for shared libs.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110908/643541b1/attachment-0001.htm>


More information about the petsc-users mailing list