Home | News | Documentation | Download

Permission error while building Root from source

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


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

1 Like

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.