Hi everyone,
I am completely new to the world of programming and using different programs and so on. I am working on my bachelor thesis for the JUNO experiment and in order to run some codes given to me, I need the following programs:
C++ compiler, standard >= 11
tested with gcc 4.9.4
tested with gcc 4.8.5
tested with gcc 11.3.0
cmake >= 2.7.0
tested with 3.7.0
tested with 3.10.0-rc2
tested with 3.22.1
make
tested with GNU Make 3.81 (2006)
tested with GNU Make 3.82 (2010)
tested with GNU Make 4.3
root
tested with 5.32
tested with 6.10
tested with 6.26/06
Now via homebrew I already installed make and cmake. I also have Xcode as a C++ compiler. With root, the problems begin. I tried using brew install root which gave me the newest version of root but the data processor Iāll have to use was only tested on root 6.26, which I would like to install now. Iāve tried for a few days now, with chatgpt, with other internet tips, with tips from people at my university, but there are always so many different error messages that I wonāt even start to understand, so I was just wondering if anyone had to install an older version of root as well and how they did that.
I downloaded root 6.26.00 and put it in a separate folder called āRootā so I could quickly access it through the terminal (Iām using a MacBook Pro). I keep getting error messages about so many different things like
ā/opt/homebrew/bin/gmakeā, Please enable builtin Glew due bug in latest CMake (use cmake option
-Dbuiltin_glew=ON). (which I didā¦) and so on. Iām so frustrated at this point.
someone suggested ccmake but I canāt even find anything on the internet on how to install that on mac, soā¦
any help would be appreciated!
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided
Hi @Wandelsterne,
Welcome to the ROOT forum.
We indeed donāt recommend building ROOT from source if youāre a beginner. What you can do instead, if you need an older ROOT version, is to download the binary file (i.e. a ready to use programme) from here: Releases - ROOT (just select whichever version you need and whichever operating system version you are using). Then simply follow the instructions here: Installing ROOT - ROOT.
In case you still have issues, please let us know.
Cheers,
Marta
Hi, thank you for the quick response!
I downloaded the binary file but now I have another problem⦠my Mac refuses to let me properly set up root because it is neither from the App Store or āverified developersā so I canāt run the command ārootā without getting error commands. Is there any solution to this?
Edit: I donāt know if this is relevant but Iām working with macOS14 and xcode 15.0.1 and the binary distribution I installed was for macOS12 and Xcode 13. would that still work?
Hi,
this can be fixed by changing your macbookās permissions, for example: Allow accessibility apps to access your Mac ā Apple Support (UK). (If you google the exact error message youāre getting you should be able to find more answers).
Cheers,
Marta
sadly this didnāt work for me because I kept getting the error message for one program that it wasnāt from the App Store or a trusted developer and the settings app ended up bugging around and closing itself. I tried again to redownload the binary distribution the way it was described but now I have root 6.28., lol. I feel stupid for not being able to figure this out but sadly nothingās really working for me with this program
Hi,
ok, I see, actually I found a forum post with the same issue as yours: Mac 10.15 Catalina: "cannot be opened because the developer cannot be verified"
What I did just now on my macbook (and it works) is running the following in the terminal:
curl -O https://root.cern/download/nightly/root_v6.26.99.macos-14.0-x86_64-clang120.pkg
Then you follow the installation steps in a new window.
By default, your new ROOT executable should be installed in the Applications folder. Then from there you will still need to source thisroot.sh file as:
source /Applications/root_v6.26.99/bin/thisroot.sh
Then you can just type root in your terminal in order to start an interactive session.
Cheers,
Marta
hi, thank you once again for your answer. in theory, this works really well, however it seems like whenever Iām restarting my pc or closing my terminal, root ādisappearsā. it worked before but when I type root in the terminal, thereās an error message. I had to reinstall via curl and itās honestly quite a hassle. do you know why that is or how I can avoid that?
ok nvm I just de- and reinstalled but now it doesnāt work anymore. I canāt find it in my applications.
Hi!
and have you sourced root in your new terminal? You donāt have to reinstall it every time but you do need to source it every time.
Regarding your second question, I have no clue what happened on your machine⦠maybe the installation path has changed?
Cheers,
Marta