# Could not find CMAKE\_ROOT !!!

**URL:** https://discourse.cmake.org/t/could-not-find-cmake-root/5046
**Category:** Usage
**Created:** [February 17, 2022, 6:04pm UTC](https://discourse.cmake.org/t/could-not-find-cmake-root/5046 "2022-02-17T18:04:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Parul\_Baranwal](https://discourse.cmake.org/user_avatar/discourse.cmake.org/parul_baranwal/32/2188_2.png) [@Parul\_Baranwal](https://discourse.cmake.org/u/Parul_Baranwal)
#### Post date: [February 17, 2022, 6:04pm UTC](https://discourse.cmake.org/t/could-not-find-cmake-root/5046/1 "2022-02-17T18:04:34Z")

</div>

I downloaded cmake using following command

> (base) pbaranw@enggpz1p23:~$ cmake\_version=3.22.2  
> (base) pbaranw@enggpz1p23:~$ wget [https://github.com/Kitware/CMake/releases/download/v$cmake\_version/cmake-$cmake\_version.tar.gz](https://github.com/Kitware/CMake/releases/download/v$cmake_version/cmake-$cmake_version.tar.gz)

After this I am getting error

> (base) pbaranw@enggpz1p23:~/cmake-3.22.2$ cmake -DCMAKE\_BUILD\_TYPE=Release .  
> CMake Error: Could not find CMAKE\_ROOT !!!  
> CMake has most likely not been installed correctly.  
> Modules directory not found in  
> /home/utad/pbaranw/.local/share/cmake-3.10  
> CMake Error: Error executing cmake::LoadCache(). Aborting.

Can someone please help. Thank you

---

<div class="post-metadata">

### Author: ![hex](https://discourse.cmake.org/user_avatar/discourse.cmake.org/hex/32/363_2.png) [@hex](https://discourse.cmake.org/u/hex)
#### Post date: [February 17, 2022, 7:22pm UTC](https://discourse.cmake.org/t/could-not-find-cmake-root/5046/2 "2022-02-17T19:22:27Z")

</div>

you forgot to untar the download. You’re still using CMake 3.10 there (instead of 3.22.2). Also, the install isn’t in your path, so try

```auto
./bin/cmake -DCMAKE_BUILD_TYPE=Release .

```

instead.
