# cmake installation error of file & directory not found

**URL:** https://discourse.cmake.org/t/cmake-installation-error-of-file-directory-not-found/746
**Category:** Usage
**Created:** [March 2, 2020, 4:54pm UTC](https://discourse.cmake.org/t/cmake-installation-error-of-file-directory-not-found/746 "2020-03-02T16:54:20Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![nachiket\_acharya](https://discourse.cmake.org/user_avatar/discourse.cmake.org/nachiket_acharya/32/405_2.png) [@nachiket\_acharya](https://discourse.cmake.org/u/nachiket_acharya)
#### Post date: [March 2, 2020, 4:54pm UTC](https://discourse.cmake.org/t/cmake-installation-error-of-file-directory-not-found/746/1 "2020-03-02T16:54:20Z")

</div>

I get the following error after running the command:

. **/bootstrap && make && sudo make install**

CMake Error at Modules/CMakeTestCCompiler.cmake:60 (message):  
The C compiler

```
"/usr/bin/gcc"

```

is not able to compile a simple test program.

It fails with the following output:

```
Change Dir: /usr2/nacharya/Downloads/cmake-3.16.4/CMakeFiles/CMakeTmp

Run Build Command(s):/prj/qct/ranger/sandiego/data/soft64/lmakeLast/LinuxCE+suse11/bin/gmake cmTC_a4399/fast && make -f CMakeFiles/cmTC_a4399.dir/build.make CMakeFiles/cmTC_a4399.dir/build

/bin/sh: make -f CMakeFiles/cmTC_a4399.dir/build.make CMakeFiles/cmTC_a4399.dir/build
: No such file or directory
Child aborted
Generator: execution of make failed. Make command was: /prj/qct/ranger/sandiego/data/soft64/lmakeLast/LinuxCE+suse11/bin/gmake cmTC_a4399/fast && 

```

CMake will not be able to correctly generate this project.  
Call Stack (most recent call first):  
CMakeLists.txt:7 (project)

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [March 2, 2020, 5:53pm UTC](https://discourse.cmake.org/t/cmake-installation-error-of-file-directory-not-found/746/2 "2020-03-02T17:53:15Z")

</div>

The full error output should be in `CMakeFiles/CMakeError.log`.

---

<div class="post-metadata">

### Author: ![nachiket\_acharya](https://discourse.cmake.org/user_avatar/discourse.cmake.org/nachiket_acharya/32/405_2.png) [@nachiket\_acharya](https://discourse.cmake.org/u/nachiket_acharya)
#### Post date: [March 3, 2020, 4:06am UTC](https://discourse.cmake.org/t/cmake-installation-error-of-file-directory-not-found/746/3 "2020-03-03T04:06:31Z")

</div>

Dump from the CMakeError.log  
Determining if the C compiler works failed with the following output:  
Change Dir: /usr2/nacharya/Downloads/cmake-3.16.4/CMakeFiles/CMakeTmp

Run Build Command(s):/prj/qct/ranger/sandiego/data/soft64/lmakeLast/LinuxCE+suse11/bin/gmake cmTC\_a4399/fast && make -f CMakeFiles/cmTC\_a4399.dir/build.make CMakeFiles/cmTC\_a4399.dir/build

/bin/sh: make -f CMakeFiles/cmTC\_a4399.dir/build.make CMakeFiles/cmTC\_a4399.dir/build  
: No such file or directory  
Child aborted  
Generator: execution of make failed. Make command was: /prj/qct/ranger/sandiego/data/soft64/lmakeLast/LinuxCE+suse11/bin/gmake cmTC\_a4399/fast &&

I am not able to debug this, can you help me with the same

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [March 3, 2020, 9:16pm UTC](https://discourse.cmake.org/t/cmake-installation-error-of-file-directory-not-found/746/4 "2020-03-03T21:16:23Z")

</div>

What file is not found would need to be debugged (`strace -e file -f` may help). Do you have a `make` installed?

---

<div class="post-metadata">

### Author: ![nachiket\_acharya](https://discourse.cmake.org/user_avatar/discourse.cmake.org/nachiket_acharya/32/405_2.png) [@nachiket\_acharya](https://discourse.cmake.org/u/nachiket_acharya)
#### Post date: [March 4, 2020, 4:39am UTC](https://discourse.cmake.org/t/cmake-installation-error-of-file-directory-not-found/746/5 "2020-03-04T04:39:42Z")

</div>

> [@ben.boeckel](#):
>
> strace -e file -f

Yes make is installed

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [March 4, 2020, 1:49pm UTC](https://discourse.cmake.org/t/cmake-installation-error-of-file-directory-not-found/746/6 "2020-03-04T13:49:47Z")

</div>

Hmm. Without knowing the path that isn’t being found, I can’t really speculate further, sorry. It could be the `-f` argument path that doesn’t exist I suppose?
