# Permission error while building Root from source

**URL:** <https://root-forum.cern.ch/t/permission-error-while-building-root-from-source/40981>\
**Category:** Newbie\
**Tags:** python, root\
**Created:** [August 13, 2020, 2:40pm UTC](https://root-forum.cern.ch/t/permission-error-while-building-root-from-source/40981 "2020-08-13T14:40:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![henrysp](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/3da27b/32.png) [@henrysp](https://root-forum.cern.ch/u/henrysp)\
**Post date:** [August 13, 2020, 2:40pm UTC](https://root-forum.cern.ch/t/permission-error-while-building-root-from-source/40981/1 "2020-08-13T14:40:19Z")

</div>

Hello,  
I tried to build Root from the source with cmake --build . --target install and got this error: Install the project…  
– Install configuration: “Release”  
– Up-to-date: /lib  
CMake Error at cmake\_install.cmake:46 (file):  
file INSTALL cannot set permissions on “/lib”: Operation not permitted.  
Has anyone an idea how i can fix the permission problem?  
Would appreciate any kind of help.  
Henry

\_ROOT Version: 6.22.00  
\_Platform: Linux

* * *

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [September 1, 2020, 6:39am UTC](https://root-forum.cern.ch/t/permission-error-while-building-root-from-source/40981/2 "2020-09-01T06:39:32Z")

</div>

may be you do not have the permissions and need to do it with `sudo`

---

<div class="post-metadata">

**Author:** ![henrysp](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/3da27b/32.png) [@henrysp](https://root-forum.cern.ch/u/henrysp)\
**Post date:** [September 1, 2020, 12:09pm UTC](https://root-forum.cern.ch/t/permission-error-while-building-root-from-source/40981/3 "2020-09-01T12:09:09Z")

</div>

Thank you for your answer. I’m a new Linux user. The sudo command fixed my problem. Now i just need to set up ROOT in my environment and i m good to go.
