Difficulties installing and opening ROOT



Hi, I tried to intall ROOT on my 2020 Mac M1 using Conda but when I try to open it it gives me these lines:

Fatal in TROOT::InitInterpreter cannot load library dlopen(/Users/carloverona/root/lib/libRIO.so, 0x000A): 
tried: ‘/Users/carloverona/root/lib/libRIO.so’ 
(mach-o file, but is an incompatible architecture (have ‘x86_64’, need ‘arm64e’ or ‘arm64’)), ‘/Users/carloverona/root/lib/libRIO.so’ (mach-o file, but is an incompatible architecture (have ‘x86_64’, need ‘arm64e’ or ‘arm64’)), 
‘/System/Volumes/Preboot/Cryptexes/OS/Users/carloverona/root/lib/libRIO.so’ (no such file), ‘/Users/carloverona/root/lib/libRIO.so’ (mach-o file, but is an incompatible architecture (have ‘x86_64’, need ‘arm64e’ or ‘arm64’)), ‘/Users/carloverona/root/lib/libRIO.6.27.01.so’ (mach-o file, but is an incompatible architecture (have ‘x86_64’, need ‘arm64e’ or ‘arm64’)), ‘/Users/carloverona/root/lib/libRIO.6.27.01.so’ (mach-o file, but is an incompatible architecture (have ‘x86_64’, need ‘arm64e’ or ‘arm64’)), ‘/System/Volumes/Preboot/Cryptexes/OS/Users/carloverona/root/lib/libRIO.6.27.01.so’ (no such file), 
‘/Users/carloverona/root/lib/libRIO.6.27.01.so’ (mach-o file, but is an incompatible architecture (have ‘x86_64’, need ‘arm64e’ or ‘arm64’))

Does anyone know how to solve this problem? thanks

forgot to say I’m running Sonoma 14.5

In /Users/carloverona/root/ you have an old version of ROOT (v6.27) that was build for Intel processor and thus can not be used on you machine.

Check your .bashrc (or equivalent for your shell) for code setting up that version of ROOT.

sorry but I’m not familiar with what you’re saying, could you explain it step by step ? Thanks

What shell do you use? Do echo $SHELL. If it says /bin/bash, then do xed ~/.bashrc (or instead of XCode use you favorite editor). In there, there should be some line of code that setups ROOT, probably by source thisroot.sh. If not, then you use a different way of installing ROOT, so back when you installed v6.27, how did you install it?

when I command echo $SHELL it says /bin/zsh , now what? when I previously installed it it was with home-brew I think but I was helped by a professor and now I’m trying again because it won’t work…

homebrew

Humm .. strange that it would have installed it in you home directory …

zsh

The equivalent file is .zshrc.