# CMake Error at CMakeLists.txt:22 (project): CMAKE\_C\_COMPILER: CMAKE\_Fortran\_COMPILER:

**URL:** https://discourse.cmake.org/t/cmake-error-at-cmakelists-txt-22-project-cmake-c-compiler-cmake-fortran-compiler/6516
**Category:** Usage
**Tags:** os:linux
**Created:** [September 19, 2022, 7:14pm UTC](https://discourse.cmake.org/t/cmake-error-at-cmakelists-txt-22-project-cmake-c-compiler-cmake-fortran-compiler/6516 "2022-09-19T19:14:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![edobune](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/e/eb8c5e/32.png) [@edobune](https://discourse.cmake.org/u/edobune)
#### Post date: [September 19, 2022, 7:14pm UTC](https://discourse.cmake.org/t/cmake-error-at-cmakelists-txt-22-project-cmake-c-compiler-cmake-fortran-compiler/6516/1 "2022-09-19T19:14:10Z")

</div>

python …/configure.py --arch=intel-avx2 --prefix=…/  
$ cmake -D CMAKE\_TOOLCHAIN\_FILE=intel-avx2 -D CMAKE\_INSTALL\_PREFIX=…/ -D CMAKE\_BUILD\_TYPE=Release -D CMAKE\_VERBOSE\_MAKEFILE=off /home/edwinobune/SALMON-v.2.1.0/build/…  
– The Fortran compiler identification is unknown  
– The C compiler identification is unknown  
CMake Error at CMakeLists.txt:22 (project):  
The CMAKE\_Fortran\_COMPILER:

```
mpiifort

```

is not a full path and was not found in the PATH.

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.

CMake Error at CMakeLists.txt:22 (project):  
The CMAKE\_C\_COMPILER:

```
mpiicc

```

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment  
variable “CC” or the CMake cache entry CMAKE\_C\_COMPILER to the full path to  
the compiler, or to the compiler name if it is in the PATH.

– Configuring incomplete, errors occurred!  
See also “/home/edwinobune/SALMON-v.2.1.0/build/CMakeFiles/CMakeOutput.log”.  
See also “/home/edwinobune/SALMON-v.2.1.0/build/CMakeFiles/CMakeError.log”.

I’m doing this on RedHat Enterprise Linux 9.  
Please help, I’m a grad student using the program for a research and not so comfortable on doing much on linux.

Thanks  
Edwin
