<div dir="ltr">Hi there,<div><br></div><div>I am trying to install petsc with its own mpicc. <span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">I download it and untar it under my directory.</span> <span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">I export PETSC_DIR=`pwd` and export PETSC_ARCH=x86_64.</span></div><div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"><br></span></div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">When I do configure:</span><div><font color="#000000" face="Times New Roman" size="3">./config/configure.py –with-shared-libraries=1 –with-x=0 –with-mpi=1 -download-hypre=1 –download-f-blas-lapack=1 –download-mpich=1 -download-mpicc=1 –download-f2cblaslapack=1</font><br></div><div><font color="#000000" face="Times New Roman" size="3"><br></font></div><div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">I got an error report:</span><font color="#000000" face="Times New Roman" size="3"><br></font></div><div><div style><font color="#000000" face="Times New Roman" size="3">+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</font></div><div style><font color="#000000" face="Times New Roman" size="3">The version of PETSc you are using is out-of-date, we recommend updating to the new release</font></div><div style><font color="#000000" face="Times New Roman" size="3"> Available Version: 3.5.2   Installed Version: 3.4.2</font></div><div style><font color="#000000" face="Times New Roman" size="3"><a href="http://www.mcs.anl.gov/petsc/download/index.html">http://www.mcs.anl.gov/petsc/download/index.html</a></font></div><div style><font color="#000000" face="Times New Roman" size="3">+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</font></div><div style><font color="#000000" face="Times New Roman" size="3">===============================================================================</font></div><div style><font color="#000000" face="Times New Roman" size="3">             Configuring PETSc to compile on your system</font></div><div style><font color="#000000" face="Times New Roman" size="3">===============================================================================</font></div><div style><font color="#000000" face="Times New Roman" size="3">TESTING: check from config.libraries(config/BuildSystem/config/libraries.py:145)                              *******************************************************************************</font></div><div style><font color="#000000" face="Times New Roman" size="3">         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):</font></div><div style><font color="#000000" face="Times New Roman" size="3">-------------------------------------------------------------------------------</font></div><div style><font color="#000000" face="Times New Roman" size="3" style="background-color:rgb(255,255,0)">You must specify a path for MPI with --with-mpi-dir=<directory></font></div><div style><font color="#000000" face="Times New Roman" size="3">If you do not want MPI, then give --with-mpi=0</font></div><div style><font color="#000000" face="Times New Roman" size="3">You might also consider using --download-mpi instead</font></div><div style><font color="#000000" face="Times New Roman" size="3">*******************************************************************************</font></div></div><div style><font color="#000000" face="Times New Roman" size="3">How to solve this? I also attach my configure.log below.</font></div><div style><font color="#000000" face="Times New Roman" size="3"><br></font></div><div style><font color="#000000" face="Times New Roman" size="3">Thanks!</font></div><div style><font color="#000000" face="Times New Roman" size="3">Nan</font></div></div>