# Installation Permission Error

**URL:** <https://root-forum.cern.ch/t/installation-permission-error/40340>\
**Category:** Newbie\
**Tags:** installation\
**Created:** [July 9, 2020, 5:06pm UTC](https://root-forum.cern.ch/t/installation-permission-error/40340 "2020-07-09T17:06:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![trevajrussell](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/df705f/32.png) [@trevajrussell](https://root-forum.cern.ch/u/trevajrussell)\
**Post date:** [July 9, 2020, 5:06pm UTC](https://root-forum.cern.ch/t/installation-permission-error/40340/1 "2020-07-09T17:06:37Z")

</div>

I’m trying to build ROOT and got this error and am not sure how to fix it. I am on a mac with catalina OS. (Also I tried installing the binary distribution and it did not work)

```auto
Scanning dependencies of target copymodulemap
[60%] Generating include/module.modulemap\
/bin/sh: /Users/Trevor\: Permission denied
make[2]: *** [include/module.modulemap] Error 1
make[2]: *** Deleting file `include/module.modulemap'
make[1]: *** [CMakeFiles/copymodulemap.dir/all] Error 2
make: *** [all] Error 2

```

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [July 9, 2020, 5:50pm UTC](https://root-forum.cern.ch/t/installation-permission-error/40340/2 "2020-07-09T17:50:58Z")

</div>

I don’t know how the MacOS system sets the permissions… Are you the main user? Maybe a MacOS user (@moneta, @couet) can give some advice

---

<div class="post-metadata">

**Author:** ![trevajrussell](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/df705f/32.png) [@trevajrussell](https://root-forum.cern.ch/u/trevajrussell)\
**Post date:** [July 9, 2020, 5:52pm UTC](https://root-forum.cern.ch/t/installation-permission-error/40340/3 "2020-07-09T17:52:29Z")

</div>

yeah it’s just my personal laptop I’m the only user

---

<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:** [July 10, 2020, 7:20am UTC](https://root-forum.cern.ch/t/installation-permission-error/40340/4 "2020-07-10T07:20:46Z")

</div>

I never had such problem following the procedure:

```auto
$ git clone https://github.com/root-project/root.git

$ mkdir build
$ cd build

$ cmake ../root
$ make -j8

$ source bin/thisroot.sh
$ root

```

---

<div class="post-metadata">

**Author:** ![trevajrussell](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/df705f/32.png) [@trevajrussell](https://root-forum.cern.ch/u/trevajrussell)\
**Post date:** [July 10, 2020, 7:38am UTC](https://root-forum.cern.ch/t/installation-permission-error/40340/5 "2020-07-10T07:38:37Z")

</div>

@couet I tried this and got the following error:

[1%] Linking C static library …/…/lib/libxxhash.a  
[1%] Built target move\_header\_graf2d\_graf  
[1%] Built target xxhash  
make: \*\*\* [all] Error 2

---

<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:** [July 10, 2020, 7:59am UTC](https://root-forum.cern.ch/t/installation-permission-error/40340/6 "2020-07-10T07:59:48Z")

</div>

Have you done:

```auto
xcode-select --install

```

?

---

<div class="post-metadata">

**Author:** ![trevajrussell](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/df705f/32.png) [@trevajrussell](https://root-forum.cern.ch/u/trevajrussell)\
**Post date:** [July 10, 2020, 3:53pm UTC](https://root-forum.cern.ch/t/installation-permission-error/40340/7 "2020-07-10T15:53:38Z")

</div>

Yeah it’s installed

---

<div class="post-metadata">

**Author:** ![trevajrussell](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/df705f/32.png) [@trevajrussell](https://root-forum.cern.ch/u/trevajrussell)\
**Post date:** [July 10, 2020, 4:18pm UTC](https://root-forum.cern.ch/t/installation-permission-error/40340/8 "2020-07-10T16:18:37Z")

</div>

Someone also gave me the advice of adding sudo before cmake (I had just been doing cmake …/root-6.22.00 followed by cmake --build .), which gave me this error instead:

Scanning dependencies of target copymodulemap  
[0%] Generating include/module.modulemap  
cat: 1/Desktop/Research/root-6.22.00\_builddir/include/module.modulemap.extra: No such file or directory  
cat: 1/Desktop/Research/root-6.22.00\_builddir/include/module.modulemap: No such file or directory  
make[2]: \*\*\* [include/module.modulemap] Error 1  
make[2]: \*\*\* Deleting file `include/module.modulemap’  
make[1]: \*\*\* [CMakeFiles/copymodulemap.dir/all] Error 2  
make: \*\*\* [all] Error 2

---

<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:** [July 22, 2020, 12:05pm UTC](https://root-forum.cern.ch/t/installation-permission-error/40340/9 "2020-07-22T12:05:01Z")

</div>

I must admit I do not see what your problem can be.
