I feel so frustrated by the fact that actually none of the answers to 'mpi.h: No such file or directory' actually targets the problem of OpenMPI v2 from APT not providing a proper environment to use its libraries.
I'm not talking about the use of wrappers: one may just want to use a type defined in mpi.h
to build a library to use in an actual source code to compile with a wrapper.
A naïve solution would be to build OpenMPI v4 from source code and it works perfectly and flawlessly in the aforementioned case; what about systems where memory is scarce though (e.g. less than 1 GB of RAM and no swap memory) that cannot build v4 for memory saturation? They can only rely on APT-provided implementation.
I wonder why APT package is so outdated and incomplete.
Edit: I'm talking about APT on Ubuntu.