Giselle, You have multiple versions of MPI installed on your computer. I would strongly advise that you remove the extra MPI libraries and keep only one of them. Anyway to fix your issue, you can use `-DMPI_CXX_COMPILER=/path/to/mpich/mpicxx` to tell CMake which MPI compiler to use.
Best, Bruno On Friday, September 1, 2023 at 2:13:45 PM UTC-4 gisel...@gmail.com wrote: Hello, I have a PETSc installation that uses mpich. I am trying to install deal II with: cmake -DDEAL_II_WITH_PETSC=ON -DCMAKE_INSTALL_PREFIX=/Users/gisellesosajones/Documents/deal_ii_95 -DPETSC_DIR=$PETSC_DIR -DPETSC_ARCH=$PETSC_ARCH -DDEAL_II_WITH_MPICH=ON -DDEAL_II_WITH_HDF5=OFF However, I get the error message *PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h* when trying to install. Is there any workaround for this? Thank you in advance. Giselle -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/01e25b1b-921d-49b7-842f-1d507d5d692bn%40googlegroups.com.