I have libopenmpi-dev
installed and my mpirun is (Open MPI) 2.1.1
Error message with cmake
is as follow:
CMake Error: File /usr/local/share/cmake-3.9/Modules/FindMPI/test_mpi.c does not exist.
CMake Error at cmake/FindMPI.cmake:1166 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
cmake/FindMPI.cmake:1223 (_MPI_try_staged_settings)
cmake/FindMPI.cmake:1385 (_MPI_check_lang_works)
CMakeLists.txt:49 (find_package)
CMake Error at /home/ezrayst/cb-geo/mpm/build/CMakeFiles/CMakeTmp/CMakeLists.txt:16 (add_executable):
Cannot find source file:
/home/ezrayst/cb-geo/mpm/build/CMakeFiles/FindMPI/test_mpi.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
CMake Error: CMake can not determine linker language for target: cmTC_45955
CMake Error: Cannot determine link language for target "cmTC_45955".
CMake Error at cmake/FindMPI.cmake:1182 (try_compile):
Failed to generate test project build system.
Call Stack (most recent call first):
cmake/FindMPI.cmake:1223 (_MPI_try_staged_settings)
cmake/FindMPI.cmake:1385 (_MPI_check_lang_works)
CMakeLists.txt:49 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/ezrayst/cb-geo/mpm/build/CMakeFiles/CMakeOutput.log".
Also, there is no such /usr/local/share/cmake-3.9/Modules/FindMPI/
folder in my machine. Any thoughts?