Installation Permission Error

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)

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

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

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

I never had such problem following the procedure:

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

$ mkdir build
$ cd build

$ cmake ../root
$ make -j8

$ source bin/thisroot.sh
$ root

@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

Have you done:

xcode-select --install

?

Yeah it’s installed

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

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