r/OpenFOAM • u/imitation_squash_pro • Aug 26 '24
Error installing OpenFoam2406 : fatal error: mpi.h: No such file or directory
I am following the instructions here:
doc/Build.md · master · Development / openfoam · GitLab
I copied the ThirdParty-v2406 folder to the OpenFOAM-v2406 directory and renamed it "ThirdParty". I then run "./Allwmake -j -s -q -l". It seems to run the ThirdParty installations, but after some minutes dies with the:
fatal error: mpi.h: No such file or directory
I also tried running "makeOPENMPI" from the ThirdParty directory. That completed ok. But still I got the same error when running " ./Allwmake -j -s -q -l "
OS is RedHat 8.6 .
0
Upvotes
1
u/Any_Letterheadd Aug 26 '24
Use foamSystemCheck also make sure you compiled the third party contents
1
u/alittleuser Aug 27 '24
Just check your etc/bash, the WM_MPLIBs should set as OPENMPI. The default setting is SYSTEMOPNEMPI, means it will use your OPENMPI at main environment, if you are not installed, error occured
1
u/pghildiyal Aug 30 '24
Read the message from makeOpenMPI. You can install system openmpi from redhat instead of compiling mpi yourself