[MacPorts] #66209: netcdf does not compile with mpich or openmpi

MacPorts noreply at macports.org
Tue Oct 17 07:52:54 UTC 2023


#66209: netcdf does not compile with mpich or openmpi
------------------------+----------------------
  Reporter:  massonseb  |      Owner:  tenomoto
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.8.0
Resolution:             |   Keywords:
      Port:  netcdf     |
------------------------+----------------------

Comment (by jmon12):

 `cmake` is not finding the MPI compilers (e.g. `mpicc-openmpi-mp`) etc...

 In my case, selecting a macports MPI environments allowed `cmake` to find
 the compilers correctly. Just follow the instructions of the notes of the
 MPI port you have installed. Here is an example with `openmpi-default`:


 {{{
 # Get the instruction: this varies depending on your installed port
 port notes openmpi-default

 # Follow the instructions: set the wrappers as default
 sudo port select --set mpi openmpi-mp-fortran
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/66209#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list