<div class="gmail_quote">On Thu, Sep 8, 2011 at 02:01, amrit poudel <span dir="ltr"><<a href="mailto:amrit_pou@hotmail.com">amrit_pou@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br> ./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<div class="im"><br>===============================================================================<br>
Configuring PETSc to compile on your system <br>===============================================================================<br></div>TESTING: configureMPIEXEC from config.packages.MPI(config/BuildSystem/config/pac*******************************************************************************<br>
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):<br>-------------------------------------------------------------------------------<br>Must give a default value for known-mpi-shared since executables cannot be run</blockquote>
</div><br><div>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.</div>
<div><br></div><div>mpicc -show</div><div>ls /home/amrit/MPI/lib # look for *.a for shared libs and *.so or *.dylib for shared libs.</div>