<div dir="ltr"><div>Hi, all.<br><br>I am trying to configure&compile petsc. However, during configuring, I got the following error (C++ error! MPI_Finalize() could not be located!). I am also copying the last few lines in configure.log.<br><br></div><div>But I am sure mpi.h is under the folder I specified (--with-mpi-include=/usr/include/mpi )<br><br></div><div>Any idea about the problem? Thanks.<br><br></div><div><br>$$ ./configure --prefix=~/local --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --with-mpi-include=/usr/include/mpi --with-mpi-lib=/usr/lib/libmpi.so<br><br>===============================================================================<br>             Configuring PETSc to compile on your system                       <br>===============================================================================<br>TESTING: CxxMPICheck from config.packages.MPI(config/BuildSystem/config/packages*******************************************************************************<br>         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):<br>-------------------------------------------------------------------------------<br>C++ error! MPI_Finalize() could not be located!<br>*******************************************************************************<br><br><br><br></div>===========  Last few lines from configure.log ================<br><br><br><div>*******************************************************************************<br>  File "./config/configure.py", line 272, in petsc_configure<br>    framework.configure(out = sys.stdout)<br>  File "/home/delia/workspace/programs/petsc/config/BuildSystem/config/framework.py", line 941, in configure<br>    child.configure()<br>  File "/home/delia/workspace/programs/petsc/config/BuildSystem/config/package.py", line 606, in configure<br>    self.executeTest(self.configureLibrary)<br>  File "/home/delia/workspace/programs/petsc/config/BuildSystem/config/base.py", line 126, in executeTest<br>    ret = test(*args,**kargs)<br>  File "/home/delia/workspace/programs/petsc/config/BuildSystem/config/packages/MPI.py", line 660, in CxxMPICheck<br>    raise RuntimeError('C++ error! MPI_Finalize() could not be located!')<br>================================================================================<br>Finishing Configure Run at Sat Jan 17 01:34:31 2015<br>================================================================================<br><br><br></div><div>Jerry <br></div></div>