I am having the following error when trying to install Specfem3D Cartesian on MacOS M2 machine.
bash-3.2$ ./configure FC=gfortran CC=gcc MPIFC=mpif90 --with-mpi
checking for mpi.h… no
configure: error: MPI header not found; try setting MPI_INC.
I made it sure that all mpi libraries are installed.
mpic++ mpicc mpicxx mpiexec mpif77 mpif90 mpifort mpioutil mpirun
The error persists, and I’m seeking assistance to understand the reason behind it. Additionally, I am looking for any suggested solutions that would enable me to successfully install it on my machine.