Configure error

Hello, everyone! I try to build the standard mfix code but facing the configure error at the first step. Would you help me with this problem?

snnu@snnu:/mnt/d/MFIX/mfix-22.1.1/release-build$ cmake … -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_MPI=1 -DMPI_Fortran_COMPILER=mpifort
– MFIX build settings summary:
– Build type = RelWithDebInfo
– CMake version = 3.10.2
– Fortran compiler =
– Fortran flags =
– ENABLE_MPI = 1
– ENABLE_OpenMP = OFF
– ENABLE_CTEST = OFF
– ENABLE_COVERAGE = OFF
CMake Error at /usr/share/cmake-3.10/Modules/CMakeDetermineSystem.cmake:186 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:20 (project)

– The Fortran compiler identification is GNU 7.5.0
CMake Error at /usr/share/cmake-3.10/Modules/CMakeDetermineFortranCompiler.cmake:278 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:20 (project)

– Check for working Fortran compiler: /usr/bin/f95
– Check for working Fortran compiler: /usr/bin/f95 – works
– Detecting Fortran compiler ABI info
– Detecting Fortran compiler ABI info - failed
– Checking whether /usr/bin/f95 supports Fortran 90
– Checking whether /usr/bin/f95 supports Fortran 90 – yes
CMake Error at /usr/share/cmake-3.10/Modules/CMakeTestFortranCompiler.cmake:89 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:20 (project)

– Performing Test ffpe_trap
– Performing Test ffpe_trap - Success
– Performing Test ffpe_summary
– Performing Test ffpe_summary - Success
CMake Error at /usr/share/cmake-3.10/Modules/FindMPI.cmake:951 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindMPI.cmake:986 (_MPI_try_staged_settings)
/usr/share/cmake-3.10/Modules/FindMPI.cmake:1261 (_MPI_check_lang_works)
model/CMakeLists.txt:625 (find_package)

CMake Error at /usr/share/cmake-3.10/Modules/FindMPI.cmake:951 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindMPI.cmake:987 (_MPI_try_staged_settings)
/usr/share/cmake-3.10/Modules/FindMPI.cmake:1261 (_MPI_check_lang_works)
model/CMakeLists.txt:625 (find_package)

CMake Error at /usr/share/cmake-3.10/Modules/FindMPI.cmake:951 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindMPI.cmake:988 (_MPI_try_staged_settings)
/usr/share/cmake-3.10/Modules/FindMPI.cmake:1261 (_MPI_check_lang_works)
model/CMakeLists.txt:625 (find_package)

CMake Error at /usr/share/cmake-3.10/Modules/FindMPI.cmake:951 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindMPI.cmake:1004 (_MPI_try_staged_settings)
/usr/share/cmake-3.10/Modules/FindMPI.cmake:1261 (_MPI_check_lang_works)
model/CMakeLists.txt:625 (find_package)

– Could NOT find MPI_Fortran (missing: MPI_Fortran_LIB_NAMES MPI_Fortran_F77_HEADER_DIR MPI_Fortran_MODULE_DIR MPI_Fortran_WORKS)
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find MPI (missing: MPI_Fortran_FOUND)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.10/Modules/FindMPI.cmake:1444 (find_package_handle_standard_args)
model/CMakeLists.txt:625 (find_package)

– Configuring incomplete, errors occurred!
See also “/mnt/d/MFIX/mfix-22.1.1/release-build/CMakeFiles/CMakeOutput.log”.
See also “/mnt/d/MFIX/mfix-22.1.1/release-build/CMakeFiles/CMakeError.log”.

Do you have openmpi installed?

mpirun --version

Thank you! Problem solved. I don’t know how, just reboot the system.