I’m trying to download ROOT from source in a new directory on my Mac. I created a new directory /Users/d/ROOT1 and moved into that directory and then executed these commands (as listed on the website):
I also have MadGraph installed on my computer (/Users/d/MG5_aMC_v3_4_0).
When I run the cmake --build .–install -j2 command, I get this error:
CMake Error at /Users/d/ROOT1/root_build/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-install-Release.cmake:49 (message):
Command failed: 2
'/Library/Developer/CommandLineTools/usr/bin/make' 'install'
See also
/Users/d/ROOT1/root_build/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-install-*.log
make[2]: *** [AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-install] Error 1
make[1]: *** [CMakeFiles/AFTERIMAGE.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 57%] Built target llvm-tblgen
make: *** [all] Error 2
But when I open the AFTERIMAGE-install-error.log file, I see
rm: /Users/d/ROOT1/root_build/include/libAfterImage/*: No such file or directory
make[3]: /Users/d/MG5_aMC_v3_4_0/install: Permission denied
make[3]: *** [install.static] Error 1
With the “make[3]: /Users/d/MG5_aMC_v3_4_0/install: Permission denied” line repeated several times before the [installl.static] Error 1 line.
I’m still pretty new to ROOT, so I’m not sure what exactly is going wrong. My best guess is that it’s not able to access the MadGraph directory, but I’m not sure why it would need to access MadGraph or how to fix that. I’ve tried running the cmake build command as superuser and adding sudo to the beginning, but it’s still not working.
Any help would be greatly appreciated!!
_ROOT Version:_6.26.10
_Platform:_MacOS 13.2 Compiler: Not Provided
As the error says, you don’t have the permission to install in /Users/d/MG5_aMC_v3_4_0/install. You can install in another place, or, since it’s on MacOS, maybe @couet or @axel can tell how to fix this issue
I’m still unsure why it’s trying to install in /Users/d/MG5_aMC_v3_4_0/install though. I’m building ROOT in a different folder (/Users/d/ROOT1/root_build), is there some reason it’s trying to access MadGraph?
The --target is telling CMake what to build, but you’re right, it should be the same than -- install. Can you try to build ROOT without the install flag, to see if it works?
I do not understand either why having MadGraph on your mac should interfere with the root install. libafterimage is part of ROOT, and I think the default is to use built-in libafterimage but I am not sure. Does MadGraph also install libafteriamge ?
I ran export | grep MG5_aMC_v3_4_0 and then make -j2. I’m still getting the same error in the terminal. The AFTERIMAGE-install-err.log file’s contents have changed to this now: