# make install error

**URL:** https://discourse.cmake.org/t/make-install-error/5654
**Category:** Usage
**Tags:** os:linux
**Created:** [May 11, 2022, 6:05pm UTC](https://discourse.cmake.org/t/make-install-error/5654 "2022-05-11T18:05:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Urinboev\_i](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/u/b5a626/32.png) [@Urinboev\_i](https://discourse.cmake.org/u/Urinboev_i)
#### Post date: [May 11, 2022, 6:05pm UTC](https://discourse.cmake.org/t/make-install-error/5654/1 "2022-05-11T18:05:36Z")

</div>

Hi, I encountered the following error while installing the cmake on my server. how can i fix this

CMake Error at Source/kwsys/cmake\_install.cmake:46 (file):  
file cannot create directory: /usr/local/doc/cmake-3.22/cmsys. Maybe need  
administrative privileges.  
Call Stack (most recent call first):  
cmake\_install.cmake:47 (include)

---

<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: [May 11, 2022, 8:09pm UTC](https://discourse.cmake.org/t/make-install-error/5654/2 "2022-05-11T20:09:09Z")

</div>

You likely need to either do `sudo make install` to be able to write to that location, `make DESTDIR=/somewhere/else install` to relocate the entire installation ot somewhere else, or update the `CMAKE_INSTALL_PREFIX` to be somewhere you can write to.
