how to solve No CMAKE_Fortran_COMPILER could be found. ?

CMake Error at CMakeLists.txt:3 (project): No CMAKE_Fortran_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment variable "FC" or the CMake cache entry CMAKE_Fortran_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!


it's probably missing gfortran Try installing the gfortran using the following command:

$ sudo apt install gfortran

Try installing the gfortran. It maybe works!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.